Check for dead?
HappyKat78
Member, BASIC Posts: 173
Hi guys,
I believe when an actor leaves the screen (or is it the scene?) by a certain amount of pixels, he will automatically be destroyed. Currently when I destroy actors I add to a count attribute I.e "deathcount". As I'm not destroying actors that leave the screen/scene myself, how can I check if game salad has destroyed an actor and add it to my deathcount? I know I could kill the actor before game salad does, say the second it leaves the scene/screen, but I actually want the actor to be able to leave the screen/scene a little.
Thoughts?
Thanks,
HK
I believe when an actor leaves the screen (or is it the scene?) by a certain amount of pixels, he will automatically be destroyed. Currently when I destroy actors I add to a count attribute I.e "deathcount". As I'm not destroying actors that leave the screen/scene myself, how can I check if game salad has destroyed an actor and add it to my deathcount? I know I could kill the actor before game salad does, say the second it leaves the scene/screen, but I actually want the actor to be able to leave the screen/scene a little.
Thoughts?
Thanks,
HK
Comments
Therefore, you can make your scene bigger, that is, give it a border outside the visible portion of the scene.
In this border you can then control the destoying of actors either by rules checking the distance it is out of the visible part of the scene, or by placing actors in this border area which will trigger the destroy of the actor if it collides/overlaps with these.
MESSAGING, X-PLATFORM LEADERBOARDS, OFFLINE-TIMER, ANALYTICS and BACK-END CONTROL for your GameSalad projects
www.APPFORMATIVE.com
Check for Dead sounds like a the name of a cool game to me...
MESSAGING, X-PLATFORM LEADERBOARDS, OFFLINE-TIMER, ANALYTICS and BACK-END CONTROL for your GameSalad projects
www.APPFORMATIVE.com
and put it down in the edge of the scene
make rule in the main actor
when overlaps or collide with actor destroy
destroy this actor
i hope it help