I'm currently working out maths I've written for game maker and the functions should transfer over but I also love to have confirmation especially before jumping in and creating plugins if it's not worth the effort.
The game well I should say kit I'm planning is Seiken Densetsu 3, now it's sad that C2 doesn't have scripting but it does have an SDK but for plugins.... I don't know if I can write mode7 in a plugin but if I can please let me know as C2 should be at this point as powerful for 2D games as the PS2 considering the PS2 SDKs were out in the late 90s to developers.
On to the collision maths.
degree = radtodeg(arctan2(vec1.y - vec2.y, vec2.x - vec1.x));
Now the vec1 variable would be for the player (or ally who is attacking) and vec2 is for the enemy on screen.
Remember when you played zelda or seiken densetsu? If you say it the enemy on the lower portion he would move back diagonal up, the opposite would be diagonal down, smack dab in the middle would just be pushed back in the opposite direction.
Any easy way without diving into the sdk to port this over?