replicate problem

voe513voe513 Member Posts: 10
edited November -1 in Working with GS (Mac)
Hi everyone,

I just finished a tutorial about replicating. TShirtbooth, showed how the replicating is done, but he did not show how the buttons actors (addLife and subtractLife) was coded to increase life by1 and reduce life by 1.

I decide to create two actors, addLife and subtract life.
I made a rule that when mouse button is down on addLife actor, increase the game.life attribute.

that is "change attribute: game.life To : (game.life)+1"
Another rule is when mouse button is down on subtract life actor decrease game.life attribute.

change attribute: game.life To : (game.life)-1

This does not work. I have tried everything that make sense to me. Please suggest an approach. I will really appreciate it.

Comments

Sign In or Register to comment.