Sprite stops overlap

Is there a way to make a tilemap where when you touch the ground you lose, but if you touch the ground while overlapping another sprite, you don’t?

(I don’t want to make the sprite a tile)

Something like this?

1 Like

I tried that, but it didn’t work.

1 Like

By the way the Overlap sprite is moving.

1 Like

Can you share your code?

1 Like

The game is to stay on the rafts.

1 Like

If you have multiple projectiles, you’ll need to loop over all of them:

2 Likes

Thanks!

1 Like

Your reply should answer a question I have here, I just wanted to check.

1 Like

Yep, that will work!

1 Like

Another question if I may please related to the logs. I have a tile map and the logs have different widths. Since I don’t want a log four tiles wide to disappear if it hits a wall, does that mean I have to place 4 single tile logs next to each other? Do any two sprites not overlap if one of them is a ghost? Or is that dependent upon how you set the ‘on sprite’ overlap event?

log is ghost
on sprite of kind ‘log’ overlaps sprite of kind ‘player’ (this will not work, right)
on sprite of kind ‘player’ overlaps sprite of kind ‘log’ (will this work?)

1 Like

They will not overlap if one sprite is a ghost

2 Likes

Thanks for the tip. I should have just tested my theory.

2 Likes