Quantcast
Channel: GameSalad 101 — GameSalad Forums
Viewing all articles
Browse latest Browse all 8931

attributes

$
0
0

Hi, i would like a little bit of help please. Ive been debating about posting until i can try and get my had round it. Ive found a work around for my issue but im not happy with it really, sound a bit newbie, but it works. However, id love it, if i can somehow figure out the real issue.

When using the attributes. Im just going to explain its going to be easier.

I have an actor that acts as a button.
i have a game integer set to 0
and in actor that acts as an image changer.

in the actor that is the image changer

//rule//
if GAME.CHANGER = 1
CHANGE IMAGE TO A
END RULE
//rule//
if GAME.CHANGER = 2
CHANGE IMAGE TO B
END RULE
//rule//
if GAME.CHANGER = 3
CHANGE IMAGE TO C
END RULE

clicking on my button>
IF attribute GAME.CHANGER = 0
ON TOUCH
SET ATTRIBUTE TO 1
END RULE//

//RULE2//
IF attribute GAME.CHANGER = 1
ON TOUCH
SET ATTRIBUTE TO 2
END RULE//

//RULE3//
IF attribute GAME.CHANGER = 2
ON TOUCH
SET ATTRIBUTE TO 3
END RULE//

But, it doesnt work.. however, when i change the touch commands to PRESS and next ruule for DEPRESS ect it works.
It would appear i cant keep clicking TOUCH to keep changing images??


Viewing all articles
Browse latest Browse all 8931

Trending Articles