|
-
Dec 7th, 2002, 06:24 AM
#1
Thread Starter
Fanatic Member
monsters movement
I'm making a pacman game and now I've came to when it's time to add the ghosts. How should I do to make them navigate the map? I have thought about putting a special number in every corner in the map file and then decide which way to turn based on what typ of corner/intersection it is and where the player is. Is this the best way?
Never argue with fools, they will only drag you down to their level, and beat you with experience.
Q: How do you tell an experienced hacker from a novice?
A: The latter thinks there's 1000 bytes in a kilobyte, while the former is sure there's 1024 meters in a kilometer
-
Dec 7th, 2002, 06:50 AM
#2
I'm not sure what would be the best way, but if you take a look here...you might get some ideas...
http://www.visualbasicforum.com/show...threadid=21616
-
Dec 7th, 2002, 10:46 AM
#3
Frenzied Member
well as far as I know the pac man ghosts are pretty dumb. All they do is move till they get a chance to move to a different direction and they chose to go the direction towards the player.
The calculations for this would be really easy too.
Sanity is a full time job
Puh das war harter Stoff!
-
Dec 7th, 2002, 01:26 PM
#4
Thread Starter
Fanatic Member
Take a look at this and you'll see that they are acturally pretty "inteligent"
http://jongy.tripod.com/GhostPsychology.html
I don't want my ghost to be as advanced as those ones but still...
Never argue with fools, they will only drag you down to their level, and beat you with experience.
Q: How do you tell an experienced hacker from a novice?
A: The latter thinks there's 1000 bytes in a kilobyte, while the former is sure there's 1024 meters in a kilometer
-
Dec 7th, 2002, 02:34 PM
#5
-
Dec 7th, 2002, 06:08 PM
#6
Thread Starter
Fanatic Member
As you said, that would be over-kill!!!
I think I will go with your first idea, the one about deciding where to turn when they are able to turn, based on theirs and the players position...
Never argue with fools, they will only drag you down to their level, and beat you with experience.
Q: How do you tell an experienced hacker from a novice?
A: The latter thinks there's 1000 bytes in a kilobyte, while the former is sure there's 1024 meters in a kilometer
-
Dec 7th, 2002, 07:18 PM
#7
Frenzied Member
oh to bad I was kind of hoping you'd be one of those young motivated programmers doing everything that comes into their mind
well anyways would have given a great demonstration on concepts of pathfinding in a simple application...
well best luck with the other way, I think the game will stay much more playable that way
Sanity is a full time job
Puh das war harter Stoff!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|