ImageSprites can rotate in App Inventor, but their Heading values can contain decimal places and they can be either positive or negative.
Also, an ImageSprite with a Heading of 90 is pointing in exactly the same direction as one with a Heading of -270 degrees.
This video shows how to always have an ImageSprite's Heading in 0 (is less than or equal to) Heading (is less than) 360.
Language blocks featured:
* Math round
* Math modulo
Component blocks featured:
* Canvas Dragged
* ImageSprite PointInDirection
Developer's page: tinyurl.com/ai2...
21 сен 2024