Posted: Wed Mar 30, 2011 11:36 pm
I have an idea. Try this with the player's collision event with the cage:
I haven't tested it, so I don't know if it will work.
When an enemy collides with the cage, destroy the enemy and have the cage change into an occupied cage object.
However, I think the whole cage idea is going to be flawed. Googles will just fly into them on their own without your input.
Code: Select all
if x < other.x other.x += 2
if x > other.x other.x -= 2When an enemy collides with the cage, destroy the enemy and have the cage change into an occupied cage object.
However, I think the whole cage idea is going to be flawed. Googles will just fly into them on their own without your input.