Search code examples
androidapp-inventor

App Inventor 2 - How to make a sprite walk to the position of touch?


I want the sprite to walk towards the position of touch. To be more precise I want it to move like the main sumo in this game: https://youtu.be/Gj5CwgFUbI0?t=56s

The buttons provide pixel by pixel movement but I've to keep pressing them again and again to reach a point. The Canvas event directly puts the sprite to the position touched.

[1]: https://i.sstatic.net/LkVyf.jpg


Solution

  • This was answered by Ghica on Mit App Inventor forum and I just made a few edits. I used blank png 10*10 pixel as a Target Sprite.

    .aia file Here are the blocks