How Can I

Discussion in 'How Can I...?' started by jackleelambert, Mar 22, 2020.

  1. jackleelambert

    jackleelambert Boxer

    Joined:
    Mar 17, 2020
    Messages:
    2
    Likes Received:
    0
    hello guys, I started creating my first platform game and I encountered two problems: I inserted the down command of the keyboard to make my character crouch, however the idle animation remains active (this movement I need to dodge the bullets).
    The second problem instead concerns the enemy's life bar; I would like every hit of my character to make him lower the life bar. I hope you can help me.
     

    Attached Files:

  2. Smart Penguins

    Smart Penguins Boxer

    Joined:
    Jan 2, 2020
    Messages:
    44
    Likes Received:
    41
    To make sure that only one Animation plays at a time use State Machine node, and use it on all your animation, by switching state it will stop all other animation and play the one you currently want.
    We did two tutorials on health check them out maybe one of them will help:

     
  3. jackleelambert

    jackleelambert Boxer

    Joined:
    Mar 17, 2020
    Messages:
    2
    Likes Received:
    0
    very helpfull! Thank’s a lot, man!
     

Share This Page