|
Post by kas29 on Feb 15, 2014 13:58:26 GMT
Guys, I don't know tell me.. Can I delete arbitrarily 1 sprite out of 5 on the screen without collision?
|
|
|
Post by lukebord1 on Feb 15, 2014 14:45:57 GMT
Can I delete arbitrarily 1 sprite out of 5 on the screen without collision? Why not?... You may have some problem if you'll need to respawn the removed sprite somewhere (had some issue in my project) but as far as i know, the REMOVE command should work independently from the COLLISION event...
|
|
|
Post by kas29 on Feb 16, 2014 2:53:41 GMT
Thank you lukebord1 The fact is that I have on the screen such as 5 sprites (type 1), and I need to delete them one by one... Yes, the REMOVE command removes sprites, but all at once... But as one to remove them.. until I can come up with... p.s. I know how to do it, but when sprites less than 12 on the screen... In my next game sprites on the screen would be the maximum and therefore invented option will not work...)
|
|
|
Post by lukebord1 on Feb 18, 2014 23:13:57 GMT
Hmm... well i'm working at a new game where many enemies (type#2) spawn on gameplay area, and when player shoots at one of them, the laser collision (COLLISION 10) removes them one by one... so, the REMOVE command, if implemented inside the enemy TYPE event, should affect a single sprite.
I don't know what kind of occurrence do your enemies have to encounter, but thinking at a kind of LEMMINGS game, where some sprites may disappear when reaching a given point, you can set the REMOVE command in your enemy TYPE event, and establish a condition if encountering some particular blocks (CUSTOM block for example)?
|
|