Help w/ arcade sprite data extension

I’m making a game using arcade sprite data and I need help cuz im using it for hp stuff

also this is for school

3 Likes

Well, you should set the “change the sprite data health by x” to a negative number and also remove it from the on game update block. You should also define the sprite data under an “on sprite of kind … created” block

1 Like

i did but it is still broken

1 Like

Maybe try changing the = sign to ≤ incase the health variable is negative?

1 Like

it worked… but u can one hit i want it to be three hit

@BoostedGames the “on sprite created” event won’t work as you’re using it right now, the sprites are being created as Projectile kind and then changed to Enemy, so it won’t ever fire.

Instead, try putting the “set data HP to 3” right below where you are creating the projectile!

Also, inside you’re overlap event I think you have your comparison flipped; you want “health <= 0” instead of “health >= 0”

3 Likes

Thank you & @Luke!

2 Likes