Yashw Yashw - 1 year ago 167
Android Question

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.stack.imgur.com/LkVyf.jpg

Answer Source

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

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download