kccarmea's Recent Forum Activity

  • Use a global variable trigger.

    When you are not attacking set it to a number and when you are attacking set it to a different number.

    On Key Press Left: Set animation player to "walk"

    Movement=1

    On Key Press Attack: Set Movement=0

    On Movement=0: Set animation "Attack

    ............................. Wait X seconds

    ............................. Set Movement=1

    That way your player will not move when attacking.

    Yeah the animation stops but when I press the right arrow while attacking the player still slides left and right just no walking animation.

  • While my character runs and swings his sword it shows the 'attack" animation but his feet to not move. Instead he slides. I guess this is because I need an animation that has him running while attacking. So instead of that I want him to stop and swing the sword, (like in Castlevania Simon Belmont will stop moving to swing the whip.) I'm trying to make an event that says: If the mouse is clicked and the direction arrow is pressed, stop moving, play "attack" animation. But since I am new to C2 I don't know what you call the "If" statements.

  • Ok so I have the character's weapon mirrored when he turns left but the image just flips and it stays to the right of the character. I want it to move to the front of the character and also mirrored.

  • In order to use Pin the object must be newly created... so you either have to do it at start-of-layout or have the blocks spawn the collision sprite and then Pin it.

    Each time a block is created have it spawn (action when block sprite is object) the collision sprite at position and then next action Pin it to the correct image point.

    That did it! Thank you so much. I had the block spawn the collision sprite at block's BBox Bottom then Pinned it.

  • It doesn't seem to work on the On-Created event.

    This is the code I have to spawn the blocks

    (Sprite-On Created-set animation frame to random)

    and to pin it I have.

    (System - On start of layout - pin collision sprite to block)

  • Ok so I got the invisible sprite attached to the falling block sprite. But it only works on the first block that falls. The falling block spawns randomly in 4 different animations. Is that what's causing it not to work or is there something else?

  • It may help to pin an invisible sprite to the bottom of the block. Make sure the edge of the sprite is lined up with the bottom edge of the block. Have it so when on Collision with the Invisible sprite, something happens. Pinning the invisible sprite to the block will let the sprite move with the block.

    Thanks, that sounds like exactly what I need.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I'm making a game where blocks fall from top to bottom and the player has to climb on them to reach the exit. But if the block lands on top of the player it hurts them. How can I make only the bottom of the block hurt the player and not the top?

kccarmea's avatar

kccarmea

Member since 8 Feb, 2017

None one is following kccarmea yet!

Trophy Case

  • 7-Year Club
  • Email Verified

Progress

8/44
How to earn trophies