Actor/player spawns indestructible
New to gamesalad and having a hard time finding an answer to an issue I've come across.
When my main actor dies I respawn the same actor after 2 seconds and reduce the number of lives by 1. All functions of the actor work EXCEPT collision. Anything that was on the scene when the new player/actor spawned will not destroy/damage the main actor. Any newly spawned actor/enemies collide properly.
Why would the newly spawned actor/player be immune to collisions with any other actors onscreen at them time of death/spawn? All are part of the same layer and spawned relative to that layer in the same way. That was my first hunch.
It acts like spawn protection which is really cool but I just wish it was something I could control.
Any help is greatly appreciated.
Thanks,
Jon
When my main actor dies I respawn the same actor after 2 seconds and reduce the number of lives by 1. All functions of the actor work EXCEPT collision. Anything that was on the scene when the new player/actor spawned will not destroy/damage the main actor. Any newly spawned actor/enemies collide properly.
Why would the newly spawned actor/player be immune to collisions with any other actors onscreen at them time of death/spawn? All are part of the same layer and spawned relative to that layer in the same way. That was my first hunch.
It acts like spawn protection which is really cool but I just wish it was something I could control.
Any help is greatly appreciated.
Thanks,
Jon
Comments
My GameSalad Academy Courses! ◦ Check out my quality templates! ◦ Add me on Skype: braydon_sfx
Braydon - the main actor has HP and if you die u subtract 1 life and respawn at the default position. Your post doesnt help BUT!!!!!! you lead me to the idea that instead of destroy/respawn I can reposition the existing character back to the default position and reduce the lives by 1 so you inspired an alternate method. Kudos to you sir...
I'll give it a whirl and let you know if it fixes my issue.