Flutter and Flame Rotate Sprite to Tap Point

preview_player
Показать описание
Basic example of how to rotate sprite to tap point.

Help needed:
I am having problems with the algorithm to calculate the angle between two points. If you have a better solution, put your GitHub repo as spaces like this: github codetricity flame_rotate_with_mouse
I'm not sure how to enable comment links in YouTube. If someone know how to do that, let me know.

Alternately, if this is already in the Flame methods, put a tip on how I can search for it.
Рекомендации по теме
Комментарии
Автор

what if we want to remove sprite on tap like in enemy spawner where enemies comping and on tap on the enemy ... the enemy will remove

hamzamalik-fzqx