Page 1 of 1

Mouse clicks and z-depth question

PostPosted: Sat Jun 18, 2011 5:33 pm
by mal99
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

Re: Mouse clicks and z-depth question

PostPosted: Sat Jun 18, 2011 7:15 pm
by schnellboot
it's a bug that childs are always on top of their parents

Re: Mouse clicks and z-depth question

PostPosted: Sat Jun 18, 2011 10:09 pm
by skydereign
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).

Re: Mouse clicks and z-depth question

PostPosted: Sun Jun 19, 2011 4:29 am
by Jagmaster
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

Re: Mouse clicks and z-depth question

PostPosted: Sun Jun 19, 2011 6:53 am
by schnellboot
me2, thanks