Help with a simple Pacman movement behavior.

nomnum

  • Posts: 8
Wow, i have been needing alot of help lately...
Anyways, i am making a simple pacman, called pacboy. i have created basic movement behav. but the problem is he is too precise. If i press "up" a moment early he will get stuck and at the corner (see pic 1), i was wondering how to get things to move more smoothly like the real pacman where pacman will turn on "que".

Ryusui

  • Posts: 827
Note that Pac-Man doesn't necessarily stop when you release the button - he stops on the tile or half-tile (I don't have the game in front of me, so I can't tell you which it is). The point is, he will always stop at a multiple of X pixels, which happens to line up perfectly with all the tunnels and branches.

You need to work out a way to make the actor "snap" to the tiles like this.
In the event of a firestorm, the salad bar will remain open.

nomnum

  • Posts: 8
Note that Pac-Man doesn't necessarily stop when you release the button - he stops on the tile or half-tile (I don't have the game in front of me, so I can't tell you which it is). The point is, he will always stop at a multiple of X pixels, which happens to line up perfectly with all the tunnels and branches.

You need to work out a way to make the actor "snap" to the tiles like this.

Thanks man! made perfect sense. Im going to work on that, but ill keep this topic as unanswered incase someone can tell me what specific behaviors could do this.
 :D

SWATLLAMA

  • Posts: 1059
Maybe Coles tile based movement could work for this.
Hail The Llama
http://www.kongregate.com/accounts/lSWATLLAMA
"Play the games" ~ The Grand Llama

It's my life goal to rickroll as many people as possible