Drag and drop default?

This forum is meant for posting anything related to Adventure Maker that doesn't fit in the other forums.Please post technical questions in the Technical Support Forum!

Moderators: time-killer-games, Vengeance66, Candle, reneuend, GM-Support

Drag and drop default?

Postby Loll » Mon May 11, 2009 3:44 pm

Is it possible to hve a dragged object event that occurs no matter what the object drageed. Either or both to other inventory object or to hotspot.


thanks Loll
Loll
Member
 
Posts: 41
Joined: Tue Jun 10, 2003 1:17 pm

Postby reneuend » Mon May 11, 2009 6:36 pm

In the same project:
You can drag inventory item (lets call it 'A') to a hotspot
You can drag the same inventory item (A) to another inventory item (B)
You can drag an inventory item (B) to inventory item (A)

Hope that helps.
---


Image
Image
User avatar
reneuend
Administrator
 
Posts: 2690
Joined: Sat Nov 22, 2008 8:37 pm
Location: Midwest Cornfield, USA

Postby mercedes » Tue May 12, 2009 12:07 am

Hi there..:D

To drag inventory items on top of other inventory items;
You would use the link on the side- 'Manage Inventory Items'>> then from there >> 'Use items on each other'..and>> 'Create a new Event'
Then choose the items you wish to use on each other..in the dialogue box that comes up..:)

And as Reneuend mentioned you can do this with either of the items-- or use them on a hotspot..:D

Peace
User avatar
mercedes
VIP
 
Posts: 2460
Joined: Sun Mar 09, 2008 10:43 pm
Location: Canada..~

Postby Loll » Tue May 12, 2009 4:39 pm

thanks but

what I want to do is get a set response if any item ( except one probably, but the exception would be no problem ) is dragged to another item or hotspot. I know you can set up each event but that could mean dozens ( maybe many dozens) of events and really clog up the list.

Is there code that reconises the drag. So you can have something like

IfDraggedObject="" then Whatever
or
IfDraggedObject<> "Redkey" then Whatever
Loll
Member
 
Posts: 41
Joined: Tue Jun 10, 2003 1:17 pm

Postby reneuend » Tue May 12, 2009 5:41 pm

KeyGuard can do what you are talking about. You can detect when a hotspot has been clicked on, and depending on what the coordinates the mouse is released, you can tell what hotspot it was over at the time.
---


Image
Image
User avatar
reneuend
Administrator
 
Posts: 2690
Joined: Sat Nov 22, 2008 8:37 pm
Location: Midwest Cornfield, USA

Postby mercedes » Wed May 13, 2009 4:22 am

Sounds like you want to be able to detect when and which inventory object is being dragged..--without creating an event..but do so when the mouse clicks or hovers over an inventory object.
You would need keyguard to detect mouse up and down..

Read about it Here ..and u can see what it can do..:D

It's since been updated to do alot, it really is a powerful plugin..it's made for AdventureMaker..

Peace
User avatar
mercedes
VIP
 
Posts: 2460
Joined: Sun Mar 09, 2008 10:43 pm
Location: Canada..~


Return to Adventure Maker General Discussion

Who is online

Users browsing this forum: No registered users and 2 guests

cron