0 Favourites

How do I make a fighting game? (some questions)

  • But first - SORRY FOR MY ENGLISH ^^

    I have a Q. Im going to make a fighting game : You are going from left to right side and just fighting with your opponents, and how do I make:

    1. Puntching someone

    2. Opponent puntching me

    3. Opponents will fallow me everywhere im going

    4. It, that every killed person will give me more power, and when my power-bar will be full, I can by tapping 2 buttons in same time do somenthing special like special move (for example in Wrestling its finisher)

    Ty!

  • 1 - on key pressed - player play punching animation

    2 - if opponent is within punching distance - opponent playy punching animation

    3 - opponent set direction to player.x, player.y

    4 - if person killed - add to global variable power, if global variable power is max and player press key - play special attack..

  • Ty, but.... I Dont know how to do that ;-; Sorry, im "green" :C Can you shove me/give me a project how to do that?I will be very grateful! The most important for me is 1.2 and 3.

  • Construct 3

    Buy Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Buy Now Construct 3 users don't see these ads
  • Do you know how to make events with conditions and add actions to them?

    It's pretty easy if you understand how to work with C2..

    Add keyboard to your project

    on key pressed (choose which key) play punching animation

    (first you would have to have created the animation ofcourse and import it into C2 with the image editor)

    Add a collision box to your animation (either by the pin behaviour or by setting the box to an imagepoint on the frames the punch is punching)

    if collisionbox is overlapping enemy - enemy subtract 1 from variable health..

    But if this is all too complicated to understand I would suggest following the beginners tutorials to learn how to program with construct2..

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)
Similar Topics Posts Views Last Post
Unread sticky
763 305,642
asikanddestroy's avatar
asikanddestroy
Unread hot topic
353 32,079
yojona's avatar
yojona
Unread hot topic
232 177,672
Tetriser's avatar
Tetriser