hi in my game i have something weird happening
when i star the game if the player push X the the sprite bullet is spawn from the "player" at image point 0 "center" by default.
PROBLEM IS it only happens when the player respawn, every time i start the game with my firs life the bullets are created somewhere from the ground where the player is.
when i die once, then the bullets are created from the sprite image point "0"
do someone know that problem???
Develop games in your browser. Powerful, performant & highly capable.
This can be easily resolved with a shared capx. Without it, just guesswork.
this what happens when i start the level and then i fire bullets are created fron anywhere from the ground
when i die fist time bullets spawn from center of my player its correct
and here its my code
SOLVED, it was because the sprite object was on layer 1 and in the spawning code i set to layer 0
this is a good thing to know.... !
NOT SOLVED , when i die now the bullets respawn from the top of my sprite... :s wtf is this...
i use the load & save state from construc 2 i seriously THINK this has something to do with that problem.
SOLVED i added, reset layout when player dead+respawn and everything is fixed now!
Little nit weird way to solving this small problem, but when it works, it's good!