Page 1 of 1

HELP:Reference selected actors/in game grid snap

PostPosted: Sat Sep 24, 2005 12:14 am
by MrJoe
How can i reference the currently selected animation of a certain actor when creating a second actor... that is i want to enable the player to cycle through a set of animations, click the mouse and create an actor matching the selected animation at the point the mouse was clicked.

Also, is it possible to enable actors to snap to the grid during gameplay?
If so how?

Thanks in advance!!

PostPosted: Sat Sep 24, 2005 12:43 am
by makslane
You can use the animindex variable and the getAnimIndex and getAnimName functions.

Read more at: http://www.game-editor.com/docs/script_ ... tanimindex

PostPosted: Sat Sep 24, 2005 12:57 am
by makslane
The actor snap is available only in the editor mode.

PostPosted: Sat Sep 24, 2005 1:58 am
by MrJoe
Thanks so much Makslane! I would of done my own research but im in a bit of a rush! :-P