frame

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In Register

How to I make a Character duck?

edited February 2015 in How To
I'm trying to make a player sprite duck when the down key is held. I have ducking animation, but how do I hold the sprite in the down position.

Comments

  • edited June 2015
    you could try decreasing the size of your character- trigger->number->size...the number is the percent of original size(e.g. 50=1/2 the size)
    Not sure if it will work on a 1x1(grid) player.

    Good luck! :)
  • I'm trying that and it's not working.
  • Try doing it using animations, in which one involves the player ducking
  • Make an invisible object that will be the hitbox for the player when ducking.

    Extract other x and y (the players location) to the position. Use an expression to adjust the y to be on the lower part of the player. Make the Enable behavior to false.

    Press a button to duck, and play an animation to duck AND make Enable to False. Turn the invisible hitbox to True.

    When you release the button, play to animation to unduck and make the hitbox to false and make the player True.
Sign In or Register to comment.

flowlab.io

| make games in your browser
@ 2017 Flowlab.io, All rights reserved.

Contact us

Get In Touch