punch or any other type of attack

0 favourites
  • 10 posts
From the Asset Store
Change delay, create new lines, "backspace" the text
  • how can i create a character that can perform an attack with a weapon or a punch in beat em up/platform games?

  • First you of course need a character for yourself with attack animations and whatnot. You need to add Image Points for the attack animations where the so-called hitboxes spawn at. The hitboxes are the invisible "bullets" you shoot from your hands, just like in real life (loljk). Then you need to add events that check animation frames. Like, when the attack animation comes to it's impact, check its frame number and set that into the event. Then add an action to spawn your hitbox to your image point.

    Next add an event for your enemy to see if it's colliding with the hitbox. If the collision happens, make an action that removes the hitbox (if you are after realistic attacks), substract health from the colliding enemy and play sounds etc.

    I can't give any examples since my only fighting game project with stuff like this is quite big already. As long as you've gotten around the logic how conditions, actions, collision and such works you shouldn't have hard times to get this working. Then comes polishing and making it look good. That's another story.

    Just a hint: Make the hitbox remove itself after one tic so enemies won't be walking into invisible, floating punches your attacks leave behind. Also adding variables for the hitbox for damage and attack type (for different hit animations etc makes your work easier. Add events for setting the damage and type right after spawning the hitbox to control the power of your attacks.

    Whoa, a long post this one... :D

  • May it'll help you, this is example of my game .

    http://dl.dropbox.com/u/52838248/CongPuExample.capx

  • thank you both <img src="smileys/smiley4.gif" border="0" align="middle" />

    tomorrow i will try to create something. i'll write for other questions or updates <img src="smileys/smiley1.gif" border="0" align="middle" />

  • yago thx

    i search for this for the whole life !!^^

    u are lifesaver because u ask this question.

    thanks hasuak and farsmile

    a real lot life saver!!!

  • how do i make a combo then ?

  • You can download the sandBOX on the arcade, there have a combo system inside, so, you can use it as reference.

    The combo is explained here: scirra.com/forum/forum_posts.asp

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • May it'll help you, this is example of my game .

    http://dl.dropbox.com/u/52838248/CongPuExample.capx

    This is brilliant! (been trying to work out how to make a Final Fight style beat em' up and this is a great help)

    Especially love the zoomed in slow motion mode, really clever and unique feature.

    Good stuff <img src="smileys/smiley32.gif" border="0" align="middle" />

  • Warch tutorials and practice.

  • OMGGG is there a way of some of you who downloaded the file from dl.dropbox.com/u/52838248/CongPuExample.capx could resend ittt!?!?!?!?!?!? Im so late and the link is private now so i cant download it PLEASEEEE

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)