Taking two hearts instead of one

Hi my game seems to be taking two hearts instead of 1 on an overlap event. https://makecode.com/_MV0Rxz9U3Rjj

1 Like

Welcome to the forums @Dace1 ! I believe your issue is not having a pause when the player gets hurt.

See the “location Cooldown”? You need something similar for your own game, so it only takes one heart. Hope this helps you out!

1 Like

change it to 100 Ms

1 Like

I don’t know why that would happen

1 Like

use the ghost through tiles it makes it so the on overlap with tile does not count and then later set it to false so you can hit the I assume lava again

2 Likes

Unfortunately this does not seem to change anything

1 Like

Interesting, I found the timer extension but where did you get the tilemap data extension? thnx!

1 Like

Yes this worked! Thanks so much!

1 Like

https://github.com/neintoes/arcade-tile-data ← This is the tile data extension your lookin’ or. Its amaazing for tiles. If you need a more exact example of what I mean, use that where the player overlaps the tile and you should be good to go!

1 Like

Awesome! Thanks for the info.

1 Like

No problem @Dace1! Glad I could help someone with an easy problem like this lol.