gpt4 book ai didi

android - App Inventor 2 - 如何让 Sprite 走到触摸的位置?

转载 作者:行者123 更新时间:2023-11-30 00:55:07 26 4
gpt4 key购买 nike

我想让 Sprite 走向触摸的位置。更准确地说,我希望它像这场比赛中的主要相扑一样移动:https://youtu.be/Gj5CwgFUbI0?t=56s

按钮提供逐像素移动,但我必须一次又一次地按下它们才能到达一个点。Canvas事件直接将 Sprite 放到触摸到的位置。

[1]: /image/LkVyf.jpg

最佳答案

Ghica 在 Mit App Inventor forum 上回答了这个问题我只是做了一些编辑。我使用空白 png 10*10 像素作为目标 Sprite 。

.aia file Here are the blocks

关于android - App Inventor 2 - 如何让 Sprite 走到触摸的位置?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40305352/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com