I've asked about this in the forum a while ago. But I still cant figure out of this.
I have a sprite that can be pushed all the way in a direction (up/down/left/right in a top down view).
And it will be destroyed if hit a wall.
I want the sprite to respawn in the previous position (if the sprite previously in x:40,y:50).
After a sprite is destroyed or a sprite is pushed to a direction/ kicked, it will start respawn in the x:40 , y:50 position.
I've tried using IID to store the sprite's IID to a global variable, which can be used to "Pick Nth instance" , so after the push, Nth instance will be the sprite's IID which have been pushed. I used IID because it is said that IID still intact even after a sprite is destroyed.
This method works for the first respawning, but doesnt work in the second respawning.
I really dont know the problem why this is happened.
It is hard for me to explain this problem, so see the capx for yourself.
This is the capx
s000.tinyupload.com ... 5753272595
Thanks anyway.