Hit boxes and AI

0 favourites
  • 3 posts
From the Asset Store
Over 2700 files with all the colour combinations from a 15 colours palette!
  • This tutorial is too advanced for me at this point

    scirra.com/tutorials/468/part3-basic-fighting-game-tutorial-video-series

    Can anyone explain to me the steps to it?

    I made a new "AttackCLSN" object

    I made a new image point called "Attack" in "Combo1" frame 2

    I made a new action "spawn AttackCLSN object at image point 1 on layer 0" when Combo1 is at frame 2.

    Problem:

    • when I am inputting the image point, C2 does not accept it when I input "Attack", so I typed 1 instead. It stated there I can input the name or number, so I have no idea why it doesn't accept "Attack"?

    then, since my AttackCLSN is just a small square, how can I resize it to fit the size of the attack (like size of whole punching arm for example) since the player in the layout view shows the Idle pose animation.

    -----------AI-------------

    I have a type of enemy with Idle, walk, punch, hurt

    What's a good logic to use for its AI?

    and how do I compare the distance between 2 different objects?

    Please help. Thanks.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • For AI, look at Pathfinding in the manual. To compare distance you want to use the system expression distance(x1, y1, x2, y2) where 1 is object 1 and 2 is object 2.

  • thanks for the help. I used ctrl+F "Path" in the manual to find "Pathfinding" but I can't find it.

    I found distance though. that's useful. thanks.

    Can anyone help me on hitboxes?

    edit:

    why does C2 asking me for a string parameter on the y1 (and possibly y2) parameter?

    This is what I put in the "For" loop

    distance (Luffy.X, Luffy.Y, PirateSwordstand.X, PirateSwordstand.Y)

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