Code:
Problem description:
i have this tech in my game that in code i have it change the players icon to an explosion, and to return them back to normal i put it back to null, but i found out it doesnt work b/c their invisible, so i need a way to put it so they change back. also i dont think posting the code matters so i didnt
Mar 10 2012, 8:45 pm
|
|
Instead of changing icon to null, change it to a specific icon. You can prolly store the icon (or icon state) in a variable to keep it simple. If it's a game where it's not important to save characters, you can use the initial() proc to cut a few lines.
|
Or you can just flick the icon you want to animate.
//object being the player |
In response to Nourn
|
|
It probably doesn't work because you have it set to a certain icon_state, try using the icon() proc.
flick(icon(icon = 'file.dmi', icon_state = "state"), object) |