Hi all,
Im in the process of making my first game - a game based on pacman - and this is my current version: http://scratch.mit.edu/projects/Indiego/2370853
My problem is the movement of the pacman, at the moment he only moves if you keep the button held, and it can be a bit glitchy sometimes,
is there any way to make him move, and keep moving in that direction, until another key is pressed or he hits a wall (and then stops).
I tried a few different ways and nothing seems to be working for me
Any help would be greatly appreciated
Offline
For moving:
when gf clicked forever move 2 steps endFor turning:
when gf clicked forever if (key [right arrow v] pressed) point in direction [90 v] end if (key [up arrow v] pressed) point in direction [0 v] end if (key [left arrow v] pressed) point in direction [-90 v] end if (key [down arrow v] pressed) point in direction [180 v] enddon't know at the time how to do the wall sensing
Offline
wasabi56 wrote:
For moving:
when gf clicked forever move (2) steps endFor turning:when gf clicked forever if (key [right arrow v] pressed?) point in direction [90 v] end if (key [up arrow v] pressed?) point in direction [0 v] end if (key [left arrow v] pressed?) point in direction [-90 v] end if (key [down arrow v] pressed?) point in direction [180 v] enddon't know at the time how to do the wall sensing
Think I fixed it.
Offline
Which Language are you using and on what platform are you making the game on?
Offline