Pages: 1
I'm new to this lol but i've made my ship- rotating left right but i want it to move forwards in the same direction that my ship is pointing and move backwards away from where my ship is pointing at... anyone have the scratch blocks?
Offline
when gf clicked go to [mouse-pointer v]
Last edited by maxamillion321 (2012-07-29 19:51:44)
Offline
SciTecCf wrote:
when gf clicked forever if <key [left arrow v] pressed?> turn ccw (1) degrees end if <key [right arrow v] pressed?> turn cw (1) degrees end move (2) steps end
Nice, but the ship needs to move forwards and backwards without turning. Here is what I thought of:
When gf clicked forever if <key [left arrow v] pressed?> turn ccw (1) degrees end if <key [right arrow v] pressed?> turn cw (1) degrees end if <key [up arrow v] pressed?> move (2) steps end if <key [down arrow v] pressed?> move (-2) steps end
Offline
Make you ship turn with the post above (not mine). Then, on the laser sprite, put if space key pressed, go to ship, point in direction (direction of ship), repeat until touching object: move 5 steps, and your done!
Offline
This is a visualization of what Blaze_X is talking about:
when key [space v] pressed go to [space ship v] point in direction ([direction v] of [space ship v]) repeat until <touching [edge v]?> move (5) steps end
Offline
nitromian wrote:
move (1) steps move (-1) steps
That script isn't going to be of any help... It would just move 1 pixel forward then another backward.
maxamillion321 wrote:
when gf clicked go to [mouse-pointer v]
That script would just make the sprite go to the mouse pointer once and end. The topic owner wants to use the arrow keys and not the mouse, too.
Offline
Pages: 1