MrTholl's Forum Posts

  • Thank you for taking your time to write code. I kept the player persistant but made an initial hp so that I can change hp back to initial hp when i restart the layer.

  • When all enemys die (I have 1 right now) or the player dies I have a button that resets the layer. It works good if the enemy dies but when the player dies his sprite doesn't reappear, his hp is still 0 and his xp is reset.

    Also, I want to keep the players xp so I made the player have a persist behavior but that also keeps his hp when i reset the room so I have to set the players hp back to 10. How can I keep the players xp but also reset the hp when I reset the layer?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • It works! I rounded the Enemy1.HP after it subtracts. Thank you.

  • I made an attack button that will subtract a random range of 1-2 from the enemys HP and I displayed the Enemys HP as a text above him. It shows the initial 10 but after I press the attack button the number disappears.