Classic Pacman games place a few ghosts inside of what I call a "cage." A cage is a simple boundary in which ghosts cannot exit until we say so. It acts as a difficulty mechanism that progressively makes our game harder over time (theoretically our game will more "fun" as a result [debatable on whether or not more ghosts is actually more fun 😂]).
In this episode, I'll show you how to create a cage for our current ghosts, and how to bring them into the game over time at set intervals.
i dont know why its not working the ghost are not going out to cage ; gsap is not working fine....