Help please - Integer attribute below zero

One of my integer attribute increase of 1 every second and decrease of 1 when one of the actor is touched but i don't want to let it goes below zero, could you help me?

Comments

  • -Timo--Timo- Member Posts: 2,313
    in the actor where the attribute decrease with 1 when is pressed say
    when touch is pressed and if attribute >0
    do
    change attribute to attribute-1

    hope this helped :)
    good luck

    -Timo-
  • Tiny_StudioTiny_Studio Member Posts: 50
    Thank you :)
  • -Timo--Timo- Member Posts: 2,313
    I'm glad I could help :)
Sign In or Register to comment.