Construct 3 Fight Tutorial - Melee Attack, Knock Back, Invincibility

แชร์
ฝัง
  • เผยแพร่เมื่อ 8 ก.พ. 2025
  • How to make a Melee Attack, Knockback and player Invincibility Mechanic in Construct 3.
    Construct 3 tutorial series where I cover some of the most common game mechanics used in video game development and show you how to implement them using Construct 3.
    You may also like my 1-button combo tutorial. Available in the playlist.
    1. Don't click this link: tinyurl.com/y6...
    2. Who would have thought this book on game dev was a best seller...? amzn.to/3mhmlIq
    3. Want to learn coding but don't know how to code? Try this... amzn.to/3lgGCME
    Follow me on twitter: / gamedev_alex
    Play the games I make: xanderwood.itc...
    Music Credit for this series: www.bensound.com
    Don't click this link: tinyurl.com/yx...

ความคิดเห็น • 72

  • @tauheedgamedev2388
    @tauheedgamedev2388 4 ปีที่แล้ว +19

    Wow there’s so many functions built into Construct 3. I wish I learnt this engine first as I had a really hard time getting to grips with Unity

    • @XanderwoodGameDev
      @XanderwoodGameDev  4 ปีที่แล้ว +4

      Yeah, on the surface it's a simple easy tool to make games, deep down there is a lot to it. 👍

  • @Nosotai
    @Nosotai 4 ปีที่แล้ว +4

    lol u did a good job in saying Nosotai correctly NO-SO-TAI ty so much for this video

    • @XanderwoodGameDev
      @XanderwoodGameDev  4 ปีที่แล้ว +2

      Glad it helped

    • @Nosotai
      @Nosotai 4 ปีที่แล้ว +2

      @@XanderwoodGameDev one thing i would have add to the melee attack is to do a every tick to move to the image point 1 so if when you attack and move at the same time it will move with the image point making the attack have a better feel

    • @XanderwoodGameDev
      @XanderwoodGameDev  4 ปีที่แล้ว +1

      @@Nosotai ah yes, I only did it from a still position. Good thinking👍

  • @Marlin-Gamedev
    @Marlin-Gamedev 4 ปีที่แล้ว +6

    Nice! Knockback is a visual necessity in most games. It communicates to the player more than they may realize. (deep thoughts, I know)😄
    Great video and explanations!

  • @FNkiro
    @FNkiro ปีที่แล้ว +2

    Thank you so much u dont know how hard it was getting started now im making Mario games and street fighters easily

  • @Arkouvam
    @Arkouvam 4 ปีที่แล้ว +2

    Ah thanks I’ve been wanting to know how to do knockback!

  • @damien5555
    @damien5555 3 ปีที่แล้ว +3

    Im finding your tutorials very very easy to follow, thanks for that, theres one tutorial i would love to see your take on, thats a mini shop, consisting of saving money values , purchasing say a gun or armor, and saving the new money value minus the purchase value. "Keep up the awesome work"

    • @XanderwoodGameDev
      @XanderwoodGameDev  3 ปีที่แล้ว +2

      Hi, thanks for watching and commenting. I have a tutorial already that may cover some of that. It's the how to make a weapon upgrade tutorial. Have a look and see if this covers what you need. If not I can make the tutorial for a mini shop. 👍👍

  • @XanderwoodGameDev
    @XanderwoodGameDev  4 ปีที่แล้ว +3

    Got an idea for a future tutorial? Leave a comment below. 👍❤

  • @ahmetbaykara.mp3
    @ahmetbaykara.mp3 2 ปีที่แล้ว +2

    I noticed the bullet angle targeting the player's bottom image point in this tutorial. Can we add an image point to the center of the player and target that point? How do we set it in the event sheet?

    • @XanderwoodGameDev
      @XanderwoodGameDev  2 ปีที่แล้ว +1

      Yeah you can use player.imagepointx(1) and player.imagepointy(1) the number refers to the image point you are targeting.

    • @ahmetbaykara.mp3
      @ahmetbaykara.mp3 2 ปีที่แล้ว

      @@XanderwoodGameDev Thank you 🙏😌

  • @papasmoget
    @papasmoget 2 ปีที่แล้ว +2

    thx you so much, bro

  • @daveman-1997
    @daveman-1997 ปีที่แล้ว +1

    Hey, fan of your tutorials, very helpful.
    I'm currently working on a 2D side scrolling platformer and am having trouble doing a couple things as I can't find tutorials for them anywhere.
    I don't normally ask people this kind of thing, but is there any place you and I could chat 1 on 1 about this? You seem very knowledgeable about how Construct 3 works and could really use the help

  • @ivanhellsing007
    @ivanhellsing007 3 ปีที่แล้ว +1

    Amazing, thx

  • @torealexandersen2179
    @torealexandersen2179 2 ปีที่แล้ว +1

    Yes, yes, yes!

  • @mika3454_jigga
    @mika3454_jigga ปีที่แล้ว +2

    Nice tutorital but i have a problem:
    when im between 2 enemies and and attak one the game is kinda confused and pushes the enemy sometimes to the player

    • @mika3454_jigga
      @mika3454_jigga ปีที่แล้ว +1

      please help

    • @XanderwoodGameDev
      @XanderwoodGameDev  ปีที่แล้ว

      You'll probably need to create a function to handle logic for each specific enemy.

  • @Yourpetnoob
    @Yourpetnoob 3 ปีที่แล้ว +2

    I'm trying to make a disguise power up on construct 3 do a game that I'm making. Do you know how to make the code for it so that enemies dont attack me while I do it.

    • @XanderwoodGameDev
      @XanderwoodGameDev  3 ปีที่แล้ว +1

      Yep. Add a boolean to your player called disguised. Then add a condition that precedes all your attacking code to only trigger if disguised is false.

  • @majormage7386
    @majormage7386 3 ปีที่แล้ว +2

    Lol I was spending hours on this then I remembered I can look at tutorials.

    • @XanderwoodGameDev
      @XanderwoodGameDev  3 ปีที่แล้ว

      Haha yep. But sometimes it's nice to figure things out though. Thanks for watching.

  • @vitorsoares5809
    @vitorsoares5809 3 ปีที่แล้ว +2

    to knockback someone up, instead of all those variables you could always use the Y vector

  • @johnmarshall2631
    @johnmarshall2631 ปีที่แล้ว +1

    What do you think is the general feasibility for making something like, a street fighter 2-esque fighting game, in the construct 3 game engine? Seriously debating dipping my toes into the engine and purchasing a license for it, based on a few of your videos, mainly this one and the 1 button attack combo tutorial.

  • @gameovermexico1420
    @gameovermexico1420 4 ปีที่แล้ว +3

    good tutorial, do you know how to dash, tackle and walk crouched?

    • @XanderwoodGameDev
      @XanderwoodGameDev  4 ปีที่แล้ว +3

      I do yes, I'll put these into a future tutorial 👍

  • @woolguide1385
    @woolguide1385 11 หลายเดือนก่อน +1

    ive done the exact code, for attacking and its just not working, is there a way to fix that? cuz i just started about two days ago

    • @XanderwoodGameDev
      @XanderwoodGameDev  11 หลายเดือนก่อน

      Check your max speed is as high as the vector you're adding for the knock back

  • @МаксимИванов-щ9к
    @МаксимИванов-щ9к ปีที่แล้ว +1

    Hi, for some reason my knockback doesnt work i tried increasing the vector but doesnt help It does work but the knockback just stays rly small

    • @XanderwoodGameDev
      @XanderwoodGameDev  ปีที่แล้ว

      That's odd 🤔 without looking at your events, not sure what it might be. Are all the settings the same? Like gravity, max speed etc.

  • @kahwigulum
    @kahwigulum 3 ปีที่แล้ว +2

    Construct3's docs are abysmally bad. I'm glad you put these videos out. I was trying to figure out bullets on my own and had no luck and gave up for a while. Tried to do melee stuff in my game instead and discover bullets in this video. If you can retitle the video to include bullet stuff, you may get more views because there's nothing that's as good as this on them out there.

    • @XanderwoodGameDev
      @XanderwoodGameDev  3 ปีที่แล้ว

      Hey, thanks for watching and thanks for the suggestions. Glad the video was useful 👍👍

  • @ShimmerismYT
    @ShimmerismYT 2 ปีที่แล้ว +1

    what's the music used in this video?

    • @XanderwoodGameDev
      @XanderwoodGameDev  2 ปีที่แล้ว

      Links to music credits are in the description 👍

  • @rohankishibe3790
    @rohankishibe3790 3 ปีที่แล้ว +1

    If possible could you help me out? For the knock back I have on collision Self.X+1000 and it still sends the same distance as 100. By any chance do you know if I’m doing anything wrong?

    • @wood7465
      @wood7465 2 ปีที่แล้ว

      I'm very late, but i'm having the same trouble, did you fix that ?

    • @PsykoGrimmy
      @PsykoGrimmy 2 ปีที่แล้ว

      Same issue, any solutions guys?

    • @digitoy8042
      @digitoy8042 2 ปีที่แล้ว

      I found a solution. I don't know why, but even coding like xenderwood didn't increase the knockback's travel distance. So, I set the value of 0.2 seconds as the wait action, and during this short time, I increased the set max speed value and coded it to return to the original max speed value. To summarize, it is as follows.
      Player | set platform maximum speed to 300
      Player | set platform vector x to Self.x-1000
      System | wait 0.2 seconds
      Player | set platform maximum speed to "your begin value..."

  • @elite_savage1245
    @elite_savage1245 3 ปีที่แล้ว +5

    Who else is new to construct 3 and forgot that they have tutorials on the website lol

    • @XanderwoodGameDev
      @XanderwoodGameDev  3 ปีที่แล้ว +3

      🤫🤐 dont remind people of that 🤣🤣🤣 send them to my channel instead.

  • @ivanthegameswine8075
    @ivanthegameswine8075 3 ปีที่แล้ว +1

    good tutorial, but what if I wanted to eliminate player control for the knockback? so that it would feel like the player's getting stunned, via castlevania, and contra. I tried to do that before but it just resulted in the knockback disappearing entirely, since it occurs through simulating player control.

    • @XanderwoodGameDev
      @XanderwoodGameDev  3 ปีที่แล้ว +2

      Make sure all your player control events are in their own group. Then set that group deactivated for 1 second when they get knocked back.

  • @El_Nahzo
    @El_Nahzo 2 ปีที่แล้ว

    can you do like a powerup that changes the player and adds another attack like in mario ?

  • @Arkouvam
    @Arkouvam 4 ปีที่แล้ว +1

    Min/aughty

    • @XanderwoodGameDev
      @XanderwoodGameDev  4 ปีที่แล้ว +1

      I'll say it correctly next time :)

    • @Arkouvam
      @Arkouvam 4 ปีที่แล้ว

      @@XanderwoodGameDev nah its fine it gets mispronounced all the time

  • @TruBugz
    @TruBugz ปีที่แล้ว

    The knockback doesn't work in my game (Maybe is because the resolution is 256 x 240 and the sprites graphics are 16x16)

    • @XanderwoodGameDev
      @XanderwoodGameDev  ปีที่แล้ว +1

      Try increasing the vector

    • @TruBugz
      @TruBugz ปีที่แล้ว

      @@XanderwoodGameDev Tanks 👍👍

  • @damdam3886
    @damdam3886 3 ปีที่แล้ว +1

    Construct 2 ?

    • @XanderwoodGameDev
      @XanderwoodGameDev  3 ปีที่แล้ว

      Construct 3

    • @damdam3886
      @damdam3886 3 ปีที่แล้ว

      @@XanderwoodGameDev i mean can it be used in construct 2 ?

  • @thedragonsden2004
    @thedragonsden2004 3 ปีที่แล้ว +1

    Some How it didn't work (Im also on c2 so that may be the problom)

    • @XanderwoodGameDev
      @XanderwoodGameDev  3 ปีที่แล้ว

      Hmm, perhaps it's because you're in construct 2?

  • @MaxGaul-dj8jj
    @MaxGaul-dj8jj 11 หลายเดือนก่อน

    why mine d'osent work

  • @GenExo714
    @GenExo714 ปีที่แล้ว +2

    For some reason the knock back while the player is mirrored didn't work. Can someone help me please (⁠╥⁠﹏⁠╥⁠) or @Xanderwood

    • @XanderwoodGameDev
      @XanderwoodGameDev  ปีที่แล้ว

      Did you set the vector to minus?

    • @GenExo714
      @GenExo714 ปีที่แล้ว

      I figured it out... Thank you so much, your videos helped me a lot to make my game. Can you make some videos on stealth mechanics because I'm in dire need to make stealth mechanics cuz I've to submit my assignment for game design on 9th May (in which I've to make a level of a 2D platformer game)