Page 1 of 1

Mouse Drag

PostPosted: Wed Mar 24, 2004 9:38 pm
by ingsan
Hello everyone !
:)
i have 1 actor.
MainActor

on MouseButtonDown [LEFT] WITHOUT DRAG
Action1

after Action1 :
on MouseButtonDown [LEFT] again but this time WITH DRAG
Action2

i tried to test if we could have on Action1 a MouuseEvent WITHOUT DRAG first and then, after that action have a MouseEvent on same Actor WITH DRAG. But the result is that i have a Drag Event occuring at Action1. The way i coded it tells me that it's normal that i get such results. But is there a better way ? so that Drag ONLY occurs on Action2 ?

Thanx
:wink:

PostPosted: Thu Mar 25, 2004 3:18 pm
by makslane
What do you want to do?

PostPosted: Thu Mar 25, 2004 3:37 pm
by ingsan
for example :

On Mouse Left Click for the First time on an Actor
Action : Throw Ball

On Mouse Left Click for the Second time on Same Actor
Action : Drag Ball

PostPosted: Sat Mar 27, 2004 1:37 am
by makslane
To do this you must use the "Follow Mouse" action and a variable to count the click number