im coding a scrolling platformer and have tried using conditional logic for my enemy AI to move towards my player - it seems to work well with the attack process initiated within a specific sprite proximity.
everything works great but i would like the AI to have the ability to follow my player by using jump. my player jumps from rooftop to rooftop and the AI just falls off the roof when trying to follow my player to the next building.
I could define a transparent sprite on the edge of the building and when the enemy collides; initiate a jump - that would probably work, but i was hoping someone could suggests a cleaner / more refined solution?
thank you kindly, regards, ronnie