HELP:Reference selected actors/in game grid snap

Talk about making games.

HELP:Reference selected actors/in game grid snap

Postby MrJoe » Sat Sep 24, 2005 12:14 am

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!!
User avatar
MrJoe
 
Posts: 13
Joined: Sun Aug 14, 2005 4:39 pm
Location: Long Island
Score: 0 Give a positive score

Postby makslane » Sat Sep 24, 2005 12:43 am

You can use the animindex variable and the getAnimIndex and getAnimName functions.

Read more at: http://www.game-editor.com/docs/script_ ... tanimindex
makslane
Site Admin
 
Posts: 3947
Joined: Sat Apr 05, 2003 6:47 pm
Score: 182 Give a positive score

Postby makslane » Sat Sep 24, 2005 12:57 am

The actor snap is available only in the editor mode.
makslane
Site Admin
 
Posts: 3947
Joined: Sat Apr 05, 2003 6:47 pm
Score: 182 Give a positive score

Postby MrJoe » Sat Sep 24, 2005 1:58 am

Thanks so much Makslane! I would of done my own research but im in a bit of a rush! :-P
User avatar
MrJoe
 
Posts: 13
Joined: Sun Aug 14, 2005 4:39 pm
Location: Long Island
Score: 0 Give a positive score


Return to Game Development

Who is online

Users browsing this forum: No registered users and 1 guest