Stencyl 3.4.0 is now out. Get it now!

Looking for an experienced Stencyl User

loismustdie666

  • Posts: 2
I already have the game working, but I need help from someone that can fix minor problems in the game and add a few things.
The game is very small with just  1 level and 4 enemies! (its a project of sorts)

Reply here or contact luckyadler3@gmail.com

ceosol

  • *
  • Posts: 2147
What types of problems are you having? Most of the time, stencylers are happy to answer specific questions.

loismustdie666

  • Posts: 2
Im only a beginner. (Started 2 days ago) I tried to make a life point manager so when a projectile hits the player, the hearts go down by 1 and the game resets when the heart goes to 0.
But what is happening is when I get hit all my hearts vanish and dont die... the game continues lol.

ceosol

  • *
  • Posts: 2147
Have a boolean attribute controlling your collision.

when collision happens
if boolean = false
set boolean to true
do whatever heart subtraction thing.
kill the bullet

If the collision happens inside of the bullet, then you are set. If you have the collision happen within the player or scene, then add

do after 1 second
set boolean to false

This will give you 1 second of invincibility after getting hit. You can change the 1 second to whatever you want.