So I am brewing this Platformer game, where my Player can cast a spell (see ActorEvents_8 attachment).
As you can see, the spell will be created by pressing action1, and pushed over to an actor of group : 'enemies'.
There are two problems :
- when there are many enemies on the scene/screen, spells head for the last created one, even if off screen
- when there are no enemies, the spell doesn't move
I'd like for the spell to aim at the nearest enemy on the side of the scene where he is looking.
And if there are no enemies, for the spell just to go straight.
Thanks in advance