# Sprite overlap and tiles

**URL:** https://forum.makecode.com/t/sprite-overlap-and-tiles/3806
**Category:** Help
**Created:** [October 7, 2020, 9:33pm UTC](https://forum.makecode.com/t/sprite-overlap-and-tiles/3806 "2020-10-07T21:33:40Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![cosmoscowboy](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/cosmoscowboy/32/1718_2.png) [@cosmoscowboy](https://forum.makecode.com/u/cosmoscowboy)
#### Post date: [October 7, 2020, 9:33pm UTC](https://forum.makecode.com/t/sprite-overlap-and-tiles/3806/1 "2020-10-07T21:33:40Z")

</div>

I am working on a remake of the retro classic ‘Frogger’.

[![](https://img.youtube.com/vi/WNrz9_Fe-Us/hqdefault.jpg "Arcade Game: Frogger (1981 Konami)") ](https://www.youtube.com/watch?v=WNrz9_Fe-Us)

I have a question regarding to the overlapping of sprites and the position of tiles. My question relates to the part of the the game where the players jumps onto the logs moving across the water. I know I can check when the player overlaps a log, but I’m not know sure how to check when it moves off. I am only using block code.

If you have any ideas I would love to hear for you. 🐸

---

<div class="post-metadata">

### Author: ![cosmoscowboy](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/cosmoscowboy/32/1718_2.png) [@cosmoscowboy](https://forum.makecode.com/u/cosmoscowboy)
#### Post date: [October 7, 2020, 9:42pm UTC](https://forum.makecode.com/t/sprite-overlap-and-tiles/3806/2 "2020-10-07T21:42:05Z")

</div>

While typing the post, I saw a related post that will likely solve my question.

> [@Sprite stops overlap](https://forum.makecode.com/t/sprite-stops-overlap/2759/6):
>
> The game is to stay on the rafts.

---

<div class="post-metadata">

### Author: ![UnsignedArduino](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/unsignedarduino/32/592_2.png) [@UnsignedArduino](https://forum.makecode.com/u/UnsignedArduino)
#### Post date: [October 7, 2020, 10:34pm UTC](https://forum.makecode.com/t/sprite-overlap-and-tiles/3806/3 "2020-10-07T22:34:06Z")

</div>

You might want to take a look at my very old and abandoned Crossy Roads, which does have working logs. But you might want to prepare your eyes, as the code is a disgrace to me.

> [@Presenting: Crossy Roads 2 v1.4.3](https://forum.makecode.com/t/presenting-crossy-roads-2-v1-4-3/1575):
>
> Hello there, I hope this post finds you safe and healthy. If you have been here a while, you will probably recognize this. It’s (my best replication) of Crossy Roads. You can view it on Github [here](https://github.com/UnsignedArduino/Crossy-Roads-2) at [https://github.com/UnsignedArduino/Crossy-Roads-2](https://github.com/UnsignedArduino/Crossy-Roads-2) (Thanks @peli for helping me with Github releases) If there are any bugs, (which there will be, I am sure of that) please tell me. Thanks. EDIT: I just released Crossy Roads 2 v1.4.3. There should be no more crashes on startup.and you won…

If the controls get stuck, just restart the game. This thing is pretty old and it might be very glitchy in the new versions of Arcade.

---

<div class="post-metadata">

### Author: ![cosmoscowboy](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/cosmoscowboy/32/1718_2.png) [@cosmoscowboy](https://forum.makecode.com/u/cosmoscowboy)
#### Post date: [October 7, 2020, 11:05pm UTC](https://forum.makecode.com/t/sprite-overlap-and-tiles/3806/4 "2020-10-07T23:05:45Z")

</div>

I will definitely take a look; I’ll let you know how it goes. Thanks.

---

<div class="post-metadata">

### Author: ![cosmoscowboy](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/cosmoscowboy/32/1718_2.png) [@cosmoscowboy](https://forum.makecode.com/u/cosmoscowboy)
#### Post date: [October 7, 2020, 11:14pm UTC](https://forum.makecode.com/t/sprite-overlap-and-tiles/3806/5 "2020-10-07T23:14:34Z")

</div>

First impression you have made an excellent game. I haven’t looked at the code yet, I was having too much fun playing. You have definitely set me in the right direction. 👌
