Hey all, I'm creating a Pac-Man game for my class and I already made the whole layout and the small little ball where Pac-Man eats but I'm not sure how to make the Ghosts move on by themselves because when ever I apply the "8Direction" to them they aren't moving by themselves but I am controlling them and they are walking the same direction as Pac-Man and I don't want that. I need for them to roam around the layout freely without me controlling them. Please can someone help explain to me how to make the ghost move around by themselves, I'm really confused.
8 direction allows u to move the sprites in 8 directions by key is suitable for isometric games, 4 ways is 4 axes left right top down, but allso not automatic, unless u code it to trigger that way, u can use pathfinding or bullet behavior and trigger where to go and when... that AI movement is not easy for beginners
There is a full pacman tutorial available in the Tutorials section.
https://www.scirra.com/tutorials/308/cl ... ics-pacman
Develop games in your browser. Powerful, performant & highly capable.
Thanks Guys! sorry I'm late to thank you guys for helping!