I need AL for the ghosts movement in PACMAN
here my ghosts are mocing idiotly when i randomize their movings :D so i need an AL for them..
i want my ghost to catch the paco, thye should move to paco, but i need an al for that, any creative ideas?
i thougt that i can allot the map to 4 regions, and i think that if paco in 1st region, ghosts will mvoe to 1st region or if paco is in 2st region they will move to 2st region so they will have limited combinations by that way they will not way idiotly i think, they will fallow the paco...
As a recommendation, put 6 ghosts. 2 up, 2 down, 1 left 1 right... also, when pacman gets closer, put a coding order so ghosts "attack" and follow him
ah gracias ^^
or; define a broader area around the pieman to interact with the ghosties. If the pieman gets to close, run a routine that has them seek out the pieman?
well i think that it will harm the RAM, and for that, ill have to define rectangels which is based on ghosts and Paco, and i should check if these bases collapsed or not ^^ and it won't be good enough cuase PAco's move to random and idotly positions till it hot collapsed with pacos rectangle...
Join our real-time social learning platform and learn together with your friends!