Scrolling Game Development Kit Forum
SGDK Version 1 => Script => Topic started by: mccool on 2006-09-04, 03:46:51 PM
-
how do i make it so when i hit a button the sprite switches into another sprite, follows a predetermined path (actually i know how to do that part) then when its done with its path, it switches to a different player-controlled sprite?
-
Simply set the sprite it switches to to have a special function activate at EOP (Motion tab, At End of Path, choose "Activate EOP_<SpriteName>*" which will then cause any functions named EOP_ followed by the name of the sprite, followed by anything you want to be activated at the end of the path.
-
ok it works thanks