make a pac-man game tutorial
Game Editor questions, comments and discussion.
Post a reply 6 posts • Page 1 of 1
Edit postReport this postReply with quote make a pac-man game tutorial
by krenisis » Sat Nov 28, 2009 7:22 pm
I know every one remembers wasting coins on pac-man so now i will take you through making a simple version. This should help newbies be able to make a complete simple game.Here some art to get started.
Posts: 110
Joined: Sat Jul 25, 2009 10:27 am
Score: 4
Private messageYIM Top
--------------------------------------------------------------------------------
Edit postReport this postReply with quote Re: make a pac-man game tutorial
by krenisis » Sat Nov 28, 2009 7:47 pm
ok if you want save the art that i supply here as photos to your computer you can use them or make your own art.Lets start programming.
1) go to new game
2)now add actor pac-man
3)add all 4 animations to pac-man
4)now we are going to make pac-man move ...go to events ...click on key down....press the key you want to use to move pac-man..now go down to add action ..select script editor..do this as you input each of pac-mans movements..
MAKE PACMAN MOVE LEFT x=x-8;ChangeAnimation("Event Actor", "pac left", FORWARD);
MAKE PACMAN MOVE RIGHT x=x-8;ChangeAnimation("Event Actor" , "pac right",FORWARD);
MAKE PACMAN MOVE UP y=y-8;ChangeAnimation("Event Actor", "pac up", FORWARD);
MAKE PACMAN MOVE DOWN y=y+8;ChangeAnimation("Event Actor", "pac down", FORWARD);
Posts: 110
Joined: Sat Jul 25, 2009 10:27 am
Score: 4
Private messageYIM Top
--------------------------------------------------------------------------------
Edit postReport this postReply with quote Re: make a pac-man game tutorial
by krenisis » Sat Nov 28, 2009 8:31 pm
ok now add actor walls and add animations sideways and up and down
now we going to make sure pac-man doesnt go through the walls.
1)click on pac-man ...click on events... click on collision .....on any side of actor walls ..click yes on repeat on collision...go to add action....
go to physical response
1
1
0
1
click on immediate action
ok now we half way doneAttachments
Posts: 110
Joined: Sat Jul 25, 2009 10:27 am
Score: 4
Private messageYIM Top
--------------------------------------------------------------------------------
Edit postReport this postReply with quote Re: make a pac-man game tutorial
by krenisis » Sat Nov 28, 2009 8:44 pm
Ok now add 3 ghost actors i supplied some here or you could add your own.On each ghost actor you do this
1)ok click on ghost actor ....click on events ....click on draw actor ....click on add action ....click on script editor..
2)ok on the script editor go to bottom of screen click on variables/functions go to 2nd column click on..
move to
relative to pac-man actor
avoid wall actor
click on immedate response.
OK now add to actors
1)add dots actor use small yellow dot
2)add score actor now
ok relax this is almost overkrenisis
Posts: 110
Joined: Sat Jul 25, 2009 10:27 am
Score: 4
Private messageYIM Top
--------------------------------------------------------------------------------
Edit postReport this postReply with quote Re: make a pac-man game tutorial
by krenisis » Sat Nov 28, 2009 9:11 pm
Ok click on pac-man actor go to clone now go to array click as many as u need.
1)now click on score actor go to text
2)now input 0000 as score
3)click on pac-man ...click on events..click on collision...on any side of dots...click on action...go to script editor...and type this..
score.textNumber=score.textNumber+10;
4)now go back to collision ...on any side of dots....click on action....click on destroy actor...in the actor box choose collide actor ..click immediate response..
OK thier you go a pac-man game , for more features like power pellets and eating ghost learn some more coding and you will have it.Any question pm me or any of our fine staff.krenisis
Posts: 110
Joined: Sat Jul 25, 2009 10:27 am
Score: 4
