# Help on diver game

**URL:** <https://forum.makecode.com/t/help-on-diver-game/3640>\
**Category:** Help\
**Created:** [September 26, 2020, 2:02am UTC](https://forum.makecode.com/t/help-on-diver-game/3640 "2020-09-26T02:02:23Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![jwunderl](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/jwunderl/32/5308_2.png) [@jwunderl](https://forum.makecode.com/u/jwunderl)\
**Post date:** [September 26, 2020, 7:43am UTC](https://forum.makecode.com/t/help-on-diver-game/3640/3 "2020-09-26T07:43:13Z")

</div>

Great art, I love the main characters animations!

For the plants interaction, these two parts of the code aren’t working together:

 ![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/a/ab6b06ac86cdbe8e6b531d0b8e5921511be468cb.png)

When you press the A button while on top of a plant it does trigger the event (you can try putting `destroy sprite otherSprite` in there to see it go away), but the animation isn’t showing up because the on game update is constantly resetting the image. You can add a boolean flag (like moving) that you start at the beginning of the animation and end at the end / after a 500ms pause, and then have the on game update image resetting’s if condition be `if not moving and not collecting`.

Worth a note, Richard has an extension in the works to try and make animations for moving / etc simpler to achieve: [Animate vs Legacy in On Game Update](https://forum.makecode.com/t/animate-vs-legacy-in-on-game-update/3587/2)

Re: Save point; these two portions aren’t working together:

 ![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/e/e2e2d52c07ba600d5a35bd5f7290743edd060328.png)

when you create the statue, you clear out the tile, so that tile doesn’t exist anymore and you won’t ever overlap it. Also, you probably don’t want that `ask save game?` in a while loop; it will keep asking again immediately until the player says no, so it looks like nothing is happening. Instead, you can do:

 ![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/e/e3aed6cca7f61869770aeee635f354644ed24458.png)

---

_[View the full topic](https://forum.makecode.com/t/help-on-diver-game/3640)._
