Mouse Drag

Game Editor comments and discussion.

Mouse Drag

Postby ingsan » Wed Mar 24, 2004 9:38 pm

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:
User avatar
ingsan
 
Posts: 580
Joined: Mon Nov 17, 2003 4:02 pm
Location: Maurician LADY in FRANCE
Score: 6 Give a positive score

Postby makslane » Thu Mar 25, 2004 3:18 pm

What do you want to do?
makslane
Site Admin
 
Posts: 3947
Joined: Sat Apr 05, 2003 6:47 pm
Score: 182 Give a positive score

Postby ingsan » Thu Mar 25, 2004 3:37 pm

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
User avatar
ingsan
 
Posts: 580
Joined: Mon Nov 17, 2003 4:02 pm
Location: Maurician LADY in FRANCE
Score: 6 Give a positive score

Postby makslane » Sat Mar 27, 2004 1:37 am

To do this you must use the "Follow Mouse" action and a variable to count the click number
makslane
Site Admin
 
Posts: 3947
Joined: Sat Apr 05, 2003 6:47 pm
Score: 182 Give a positive score


Return to GE - General

Who is online

Users browsing this forum: No registered users and 1 guest

cron