Page 1 of 1

How do you make enemies like in pacman?

PostPosted: Fri Jun 01, 2007 6:20 pm
by editor2s
Please help me on making enemies move by themselves, constantly chasing the player like in pacman and at the same time avoiding walls.

P.S.: I am a beginner.... please don't use hard-to-understand terms in your answer. Thank you.

PostPosted: Fri Jun 01, 2007 7:14 pm
by Caaz Games
No Matter What It's Going To Be Hard To Under Stand If Your A Begginer. But I Think I Have An Easy Way, Look At This Code.

Ghost -> Draw Actor -> Script Editor
Code: Select all
MoveTo("Ghost", 0.000000, 0.000000, 5.000000, "Pacman", "Walls");
The 5.000000 Can Be Changed To Match The Speed You Want, Ghost Is The Actor That Is Moving, And Pacman Is What It's Moving To

PostPosted: Fri Jun 01, 2007 11:18 pm
by Sgt. Sparky
__CAAZ__ wrote:No Matter What It's Going To Be Hard To Under Stand If Your A Begginer. But I Think I Have An Easy Way, Look At This Code.

Ghost -> Draw Actor -> Script Editor
Code: Select all
MoveTo("Ghost", 0.000000, 0.000000, 5.000000, "Pacman", "Walls");
The 5.000000 Can Be Changed To Match The Speed You Want, Ghost Is The Actor That Is Moving, And Pacman Is What It's Moving To

the draw actor will not work for that,
use create timer "250"(you must make the timer) and on the timer event->script editor, the Code CAAZ posted. :D
hey, I will post the link to a pacman Demo I made. :)
EDIT: Rats, I can't find it. To many Pac Man Games! :|

PostPosted: Sat Jun 02, 2007 4:44 pm
by editor2s
Thank you very much..... especially to Sgt. Sparky... I've seen you help so many other people in the forum. Without you guys, creating games would be so hard to do.

PostPosted: Sat Jun 02, 2007 5:05 pm
by Sgt. Sparky
editor2s wrote:Thank you very much..... especially to Sgt. Sparky... I've seen you help so many other people in the forum. Without you guys, creating games would be so hard to do.

Your Welcome. :D
(Caaz Helped To![He gave the big part of it all.])

PostPosted: Sat Jun 02, 2007 5:31 pm
by Caaz Games
Sgt. Sparky wrote:
editor2s wrote:Thank you very much..... especially to Sgt. Sparky... I've seen you help so many other people in the forum. Without you guys, creating games would be so hard to do.

Your Welcome. :D
(Caaz Helped To![He gave the big part of it all.])
And Makslane, Dont Forget Makslane!

PostPosted: Sat Jun 02, 2007 7:07 pm
by Sgt. Sparky
__CAAZ__ wrote: And Makslane, Dont Forget Makslane!

He did not make a post on this topic.
(there are lots and lots of helpful people, I was just talking aboout this topic. :D)

PostPosted: Sun Jun 03, 2007 2:21 am
by Caaz Games
Yea But Makslane Made GE, So That Puts The Whole Forum Here :D

PostPosted: Sun Jun 03, 2007 5:45 am
by Sgt. Sparky
__CAAZ__ wrote:Yea But Makslane Made GE, So That Puts The Whole Forum Here :D

True Dat. :D