Pass Click Event to next actor?

Non-platform specific questions.

Pass Click Event to next actor?

Postby Just4Fun » Tue Jul 13, 2004 12:57 am

One of the new features is:
"Actors with Mouse Button Down or Up events disables now pass click event to next actor"

How is this done?

TIA
I've learned that I still have a lot to learn.

** Makslane == Genious **
Just4Fun
 
Posts: 524
Joined: Tue Jul 01, 2003 5:19 am
Location: USA: Washington State; West Coast
Score: 6 Give a positive score

Postby makslane » Tue Jul 13, 2004 6:20 pm

This feature is good to move actors by click on the map

You have two actors:

Actor A: your game map
Actor B: your player
Actor C: trees, clouds...

Disable the Mouse Button Down event in Actor B and C (on Create Actor event)

In your actor A, catch the mouse clicks
Now, when you click on actor B or C, the actor behind (actor A) will receive this clicks.

So, you can say on actor A: "move the Actor B to x,y..."
makslane
Site Admin
 
Posts: 3947
Joined: Sat Apr 05, 2003 6:47 pm
Score: 182 Give a positive score

Postby Just4Fun » Tue Jul 13, 2004 10:48 pm

Thanks Makslane,
This is a very nice feature! :wink:
I've learned that I still have a lot to learn.

** Makslane == Genious **
Just4Fun
 
Posts: 524
Joined: Tue Jul 01, 2003 5:19 am
Location: USA: Washington State; West Coast
Score: 6 Give a positive score


Return to General

Who is online

Users browsing this forum: No registered users and 1 guest