Mouse clicks and z-depth question

Game Editor comments and discussion.

Mouse clicks and z-depth question

Postby mal99 » Sat Jun 18, 2011 5:33 pm

Hi - I'm new to GE and need help.

I'm trying to move a group of many small, identical actors in a fixed formation with a 'mouse down' on any of the actors. The obvious way is to make them all children of a filled frame actor and put this actor at a z-depth above the formation of small actors so it receives the 'mouse down' to initiate the move. But this does not work.

If the parent-child relationship is removed,the filled frame takes the mouse click and moves - but it does not take the formation of small actors with it.

Anyone got any ideas how to get round this problem

Thanks

Mal
mal99
 
Posts: 10
Joined: Tue May 31, 2011 11:47 pm
Score: 0 Give a positive score

Re: Mouse clicks and z-depth question

Postby schnellboot » Sat Jun 18, 2011 7:15 pm

it's a bug that childs are always on top of their parents
schnellboot
 
Posts: 819
Joined: Sat Mar 31, 2007 1:35 pm
Location: Germany
Score: 102 Give a positive score

Re: Mouse clicks and z-depth question

Postby skydereign » Sat Jun 18, 2011 10:09 pm

It isn't a bug, just an attribute of using parent. The child actors share several variable similarities other than zdepth. But, there are things about using parent that can help. You might look at how this causes actor to stick using parent.
http://game-editor.com/forum/download/file.php?id=7595

Another solution, since it sounds like you don't want the actors to have a mouse button down event (the identical ones), just disable their mouse button down event. This will allow you to click the actor underneath them (so in your case the filled region).
User avatar
skydereign
 
Posts: 3510
Joined: Mon Jul 28, 2008 8:29 am
Score: 589 Give a positive score

Re: Mouse clicks and z-depth question

Postby Jagmaster » Sun Jun 19, 2011 4:29 am

skydereign wrote:
Another solution, since it sounds like you don't want the actors to have a mouse button down event (the identical ones), just disable their mouse button down event. This will allow you to click the actor underneath them (so in your case the filled region).


Cool, I did not know that! :D
User avatar
Jagmaster
 
Posts: 875
Joined: Sun May 08, 2011 4:14 pm
Location: Not where you think.
Score: 82 Give a positive score

Re: Mouse clicks and z-depth question

Postby schnellboot » Sun Jun 19, 2011 6:53 am

me2, thanks
schnellboot
 
Posts: 819
Joined: Sat Mar 31, 2007 1:35 pm
Location: Germany
Score: 102 Give a positive score


Return to GE - General

Who is online

Users browsing this forum: No registered users and 1 guest