Is there anyway if changing a sprite in the events sheet at start of layout?
Have been looking all day but can't find anything
Thanks
Use Create Object in the Systems command.
Create the new sprite at the position of the one you want to change then destroy the old sprite.
As long as they have the same behaviors and your events account for the change that will work.
lamar
change it like this
It would be nice if you could feed this action a variable. This behaviour should help:
lamar change it like this
Yes and if you are replacing another sprite use the Destroy command.
Develop games in your browser. Powerful, performant & highly capable.
Yes but I want to be able to change the created sprite with a variable
lamar Yes but I want to be able to change the created sprite with a variable
So set a Global variable to CHANGESPRITE
On CHANGESPRITE = number Create Object new sprite at Position old sprite and Destroy old sprite
You could also ADD ANOTHER ANIMATION for that sprite and use the global variable to change it to your desired one.