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:
    62
    Likes Received:
    70
    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:

     
    anonymos7 likes this.
  3. jackleelambert

    jackleelambert Boxer

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

    Avaz Boxer

    Joined:
    Apr 8, 2020
    Messages:
    1
    Likes Received:
    0
    Hi @Smart Penguins , I followed your tutorials "Health display", but I get an error
    Could you give an example file bbdoc to your two tutorials about health
    and respect to you @Smart Penguins
     

Share This Page