toggle menu
Categories
Discussions
Dashboard
Sign In
·
Register
Sign In
·
Register
Categories
Discussions
Dashboard
Sign In
·
Register
×
Home
›
GameSalad 101
›
Working with GS (Mac)
Help please - Integer attribute below zero
Tiny_Studio
Member
Posts:
50
August 2013
in
Working with GS (Mac)
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-
Member
Posts:
2,313
August 2013
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_Studio
Member
Posts:
50
August 2013
Thank you
-Timo-
Member
Posts:
2,313
August 2013
I'm glad I could help
Sign In
or
Register
to comment.
Comments
when touch is pressed and if attribute >0
do
change attribute to attribute-1
hope this helped
good luck
-Timo-