My actor doesn't die. why?

Swastik Dilip

  • Posts: 7
Hello guys! i m new to stencyl and i m making a game in which when a ghost hits the actor behind the the player, the ghost die and also decrease the health. if it happens 3 times then the game will be over. i attached the behaviour 'Die on collision with and actor type' but it doesn't work. i also tried collision with groups but that also doesn't work either. it works sometime but not everytime.   sometimes the ghost die but the health is not decreased. also i attached the same things with the bullet for player and the same thing happened.please help.  i made a quick powerpoint file of some screenshots. i have noticed one thing that when more than one bullet is on the screen this thingy happens. the ghost just resits the bullets when it was supposed to die. :)

« Last Edit: January 11, 2015, 11:20:34 am by Swastik Dilip »

sdieters

  • Posts: 2068
We cant look into your computer. Please post us some screenshots of your setup.
My new profile is TheIndieStation.
When you see a recent post with this name, i'm probably using my phone. So dont mind any typo's =p

NauticalNacho96

  • Posts: 22
If you're using a behavior you downloaded off of the forge you might need other behaviors as well for it to properly work

flashseeker

  • Posts: 39
Use the small [camera] button at the bottom-right status bar of the Stencyl, it will make the image file, maybe someone will be able to help you then, not everybody has powerpoint installed, you know..

sdieters

  • Posts: 2068
Also next time let us know you updated your poar because we dont gwt notidications when you change a post, only if you post a new one
My new profile is TheIndieStation.
When you see a recent post with this name, i'm probably using my phone. So dont mind any typo's =p

Swastik Dilip

  • Posts: 7
Ohk. I will keep that in mind and I think that I should remove the die on collision with an actor behaviour from the bullet. I m not sure if it works but I will try doing that when my computer has finished installing the updates.

lilpoboy1978

  • Posts: 82
I was having this problem once.  Try having the enemy kill the bullet when collided with, don't let the bullet kill itself when it hits the enemy.  Sometimes these collisions are missed.

Swastik Dilip

  • Posts: 7
It works! Thanks. The ghost was killed!  I have another problem that when the Ghost  touches a another actor , it doesn't die. and i cant add more than one 'die on collision '  behaviour on my ghost. it dies when it touches a bullet. but it doesn't die when it touches another actor for eg: a bomb.Can someone help.

« Last Edit: January 14, 2015, 09:57:23 am by Swastik Dilip »

flashseeker

  • Posts: 39
my best guess is it has collision event in one of the behaviors which has an ‘if’ statement to check if the other actor is an enemy group or something and since the bomb actor isnt set as belonging to that group, the code is not executed and your actor doesnt die..