Attacking on a platformer

0 favourites
  • 9 posts
From the Asset Store
10 Retro songs ideal for platformers or farming games
  • Well, I've decided to make a little platformer, and I took the sprites from LoZ Link's Awekening, to try to make so he slashes his sword. I set the basics, like setting him mirrored when I click left arrow key and such. How do I make this trigger work:

    When I push the spacebar button set animation to SlashSide

    It simply doesn't work, then I tried space bar is down, it worked but it was messed up

  • "Hey guys can you please answer?!"

    "NO"

    "OK..."

  • Keep in mind that you may have conditions that are in conflict.

    Say you hit space while moving (he tries to slash) but then you also hit forward (which might be making your character set the animation to walk instead).

    Without a cap.x its pretty hard to give you an answer, as you could have coded up your game in 1 of 1 million ways.

  • GenkiGenga , here is the best way to do multi animations without any problem

    http://www.scirra.com/tutorials/351/platform-behaviors-animation

    if you found any problem on it tell me ^^

  • Nice tutorial Definately worth a read :)

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Thanks guys and GenkiGenga I even tried hiting space while standing still

  • yeah this because this is the best way to do the animations on platforms ^^

  • Also, you can download the sandBOX and use it for reference.

    I do it this way:

    • Place a invisible object behind the player and pin it, with the origin point on the bottom, then, rotate the object to the same side of the player, check if this object is overlapping the enemy and subtract 1 from his life.

    Another way:

    • Every time you play fighting animations, create a invisible object behind the player, this object need to be larger than the player. Check if the object is overlapping the enemy, and, set to subtract his life.
  • TELLES0808 , the problem if he doing multi-stuffs at the same time for example he is attack while jumping and moving so which animation he will use? also if he want to attack while moving only... he will keep fixing alot of stuffs with alot of events and then when he want to import a new animation he will take alot of time just to manage what happening thats why he is better to use the way i explained ^^

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