beuleal Posted August 24, 2014 Share Posted August 24, 2014 Hi guys, for my second game based on tank game, im having troubles to "kill" the tanks... 1st, let im explain what i would like to do: REWSPAW!!! Easy, just dont lose the tank object, just make it invisible and "untargetable" for after 2 seconds and respaw in another point of the map. I dont know how to use "kill" w/ lose the object :C Thx Link to comment Share on other sites More sharing options...
Sebi Posted August 24, 2014 Share Posted August 24, 2014 edit: nvm, see answer below. Link to comment Share on other sites More sharing options...
eguneys Posted August 24, 2014 Share Posted August 24, 2014 kill the object, add an event with 2 seconds delay and revive it back. When you kill it, you don't lose it, you can revive it from it's parent. Link to comment Share on other sites More sharing options...
beuleal Posted August 24, 2014 Author Share Posted August 24, 2014 hm... I dont know if it gonna work... Link to comment Share on other sites More sharing options...
ZoomBox Posted August 25, 2014 Share Posted August 25, 2014 Man, just believe... !That's how it work:sprite.kill(); => set alive, visible and exists properties to false.So no more calculation are done on the tank untill you call sprite.revive(). Link to comment Share on other sites More sharing options...
Recommended Posts