Pac Man ( need help with movement )

remix

New Member
Reaction score
9
I am working on a game Pac Man and i do not know how to do the triggers for movement like the right arrow key, left arrow key, etc....

and can you please find me triggers with that

thank you
 

Jackal

You can change this now in User CP... or Die Tryin
Reaction score
38
Code:
Events
Player 1 presses the Up Arrow Key
Actions
Move (pac man/ghost) to position of (pac man/ghost) offset by 100, 0.
Think of the polar offsets like this
..............................Y
..........................100,0
..........................50,0
0,-100.....0,-50......0,0......0,50......0,100..................X
..........................-50,0
..........................-100,0
 

remix

New Member
Reaction score
9
Jackal i tried that movement thing with the offset 100,0 but that does not work and the other one that i downloaded it has degrees so it wont work very nice....
 

Psiblade94122

In need of sleep
Reaction score
138
what im thinking of is useing a slide

the arrow keys will set a booline to be true, the pacmans will slide nomatter what, the boolines are for when they hit an intercection, where then if the booline was true when they hit it, the pacman will change to that direction, if you want i can make a dummy map for that
 

Blackveiled

Formerly, Ban-Lord
Reaction score
157
Jackal i tried that movement thing with the offset 100,0 but that does not work and the other one that i downloaded it has degrees so it wont work very nice....

It doesn't work nice, because it rotates the unit, it doesnt turn them in a straight angle. (e.g.; 90, 360, 270, 180 angles)
 

Ninja_sheep

Heavy is credit to team!
Reaction score
64
okay, it's pretty simple.
you make a trigger that runs every 0.0X seconds and moves your pacman X into the direction of its facing.
Then just make another trigger to set the facing of the packman.
when presses arrow key up then set facing to up
when presses arrow key down then set facing to down
 

remix

New Member
Reaction score
9
well then pls atleast show me wat u mean with that face up thingy make a map and let me download it then !!!


pls!
 

Ninja_sheep

Heavy is credit to team!
Reaction score
64
well then pls atleast show me wat u mean with that face up thingy make a map and let me download it then !!!

it's an action called:
set unit angle
or something. You know your pacman can go into 4 directions. In degrees they are 0, 90, 180 and 270. Im not sure what exact. Im not sure what number is equals to what angle but i think 0 is down, 90 right, 180 up, 270 left.
 

Choppa

www.warcraft-gamers.po.gs
Reaction score
59
That movement system is killer big...

Just do something like this...

Code:
Move PacFace
    Events
        Time - Every 0.01 seconds of game time
    Conditions
    Actions
        Unit - Move PacMan instantly to ((Position of (PacMan)) offset by 3.00 towards (Facing of (PacMan)) degrees), facing (Facing of (PacMan)) degrees

Code:
Change PacFace Direction
    Events
        Player - Player 1 (Red) Presses the Left Arrow key
    Conditions
    Actions
        Unit - Make (PacMan) face 270.00 over 0.00 seconds

And you'll need to make a trigger for each keyboard key pressed.
 

remix

New Member
Reaction score
9
i am not doing pac man any more coz the pac man map does not want to open so.... no pac man map - thats gone nad y cant i open it, it does not open eny more ???

o well
 

Doomhammer

Bob Kotick - Gamers' corporate spoilsport No. 1
Reaction score
67
hmm, well, that's a pity. How about a bomberman map instead?
 

remix

New Member
Reaction score
9
My New Map

I have started a new map coz pac man does not open so my new map is called Dodge The Rolling Barrels!!!

And im neally finished :eek:

- remix
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top