I want to create a game in which the sprite moves in the direction its pointing after a rotation.
So after this:
when [left arrow] key pressed turn ccw (5) degreesthe direction is 85 degrees
Offline
d14a248 wrote:
I want to create a game in which the sprite moves in the direction its pointing after a rotation.
So after this:when [left arrow] key pressed turn ccw (5) degreesthe direction is 85 degrees
And I cannot figure out how to move the sprite in this direction.
Thanks!
See if this script can helps you.
when gf clicked forever if <key [left arrow] pressed?> move (0) steps turn ccw (5) degrees else move (5) steps
Offline
rlojunior wrote:
d14a248 wrote:
I want to create a game in which the sprite moves in the direction its pointing after a rotation.
So after this:when key [left arrow v] pressed turn ccw (5) degreesthe direction is 85 degrees
And I cannot figure out how to move the sprite in this direction.
Thanks!See if this script can helps you.
when gf clicked forever if <key [left arrow v] pressed?> turn ccw (5) degrees else move (5) steps end
Fixed and removed an unneccesary block.
Last edited by ErnieParke (2012-11-30 15:58:46)
Offline