How do I do a combat system in a 2d platform game ?

Get help using Construct 2

Post » Mon Jun 22, 2015 12:42 am

Im building a platform game and i want to do a combat system , but i dont know how . ( I dont want a life system yet , just a simple attack-destroy method )
Posts: 12
Reputation: 349

Post » Mon Jun 22, 2015 3:00 am

Whether it's a bullet or an attack, you can have the player spawn an object on a button press that destroys enemies, or lowers their health (which you would have to make a local variable).

If it's an attack like a punch, you would have to check for collisions with an enemy while an attack animation or variable is activated (e.g., When AttackMode=1; PlayerSprite on Collision with Enemy > Enemy destroy - or something like that). To have more finesse, you would have to add extra things like checking the Player's X and Y vs. the Enemy's X and Y.
Check out my VGM on my soundcloud page!
Video-Game Music: E.C.2151
Posts: 194
Reputation: 1,713

Return to How do I....?

Who is online

Users browsing this forum: No registered users and 14 guests