Does any one know how to keep track of how many degrees rotated for a sprite? For example, if a sprite has rotated 'x' amount of degrees, then (a) script(s) will find out the value of 'x' using the [blocks]<direction>[/blocks] block. I need this/these script(s) for a newer and better version of my project 'http://scratch.mit.edu/projects/AeroEng/1862152,' or the "The Original Spacecraft Simulation," so I can use it to simulate the effects of a spacecraft changing direction and then changing velocity.
Offline
Well, in each part of the script that rotates the object, you can have it also change a variable that tracks the rotation accordingly. For example:
When green flag clicked Forever If <key right arrow pressed> turn right 5 degrees change (turned) by 5 If <key left arrow pressed> turn left 5 degrees change (turned) by -5
Offline