Making baddies ala Pac-Man ghost style..
LogoLogic
Member Posts: 51
Hi all. A beautiful day is shaping up here in the NW!
How do I make bad guys move and attack like the ghosts in Pac-Man? In other words some are more aggressive and follow you to the death and some slightly follow you and break and move off.
I want to do this. Help me obi-won....
How do I make bad guys move and attack like the ghosts in Pac-Man? In other words some are more aggressive and follow you to the death and some slightly follow you and break and move off.
I want to do this. Help me obi-won....
Comments
It's sort of hard to do in GameSalad until they add some more functionality to the tool. But you can program rudimentary AI by having the actor that represents your opponent check for your position and home in on it or fire at it.
Good luck!
Rule
when game.PlayerCheckPoint=self.checkpoint
------(Insert vector to angle rules here)
Rule when game.PLayerCheckPoint=1
And when self.checkpoint=2
---(Insert rules that first gets the baddie into the correct angle and then use vectorAngle)
Do this for all possible combinations of baddie checkpoint and player checkpoints
HUGE PAIN IN THE ASS!!!
QS
Dr. Sam Beckett never returned home...
Twitter: https://twitter.com/Quantum_Sheep
Web: https://quantumsheep.itch.io