recharging meter...

digitalzerodigitalzero Member, BASIC Posts: 639
edited September 2012 in Working with GS (Mac)
so I'm developing a really weird game where you are a nose and you have to sniff up different types of donuts and avoid things like bombs spikes and dynamite there are going to be different things you can unlock like trophies and different noses and sniffers... sooo... in this game there is a nose meter... with this nose meter is where i NEED HELP so i have a couple of game attributes placed and they are as follows

left nostril
right nostril
left nostril energy
right nostril energy...

OKAY! now here goes the question... i need for the nose meter to slowly die down as you press the right nostril or the left nostril (both have separate meters) but if its not pressed then the nose meter would just go up back to its original size... i want this to be pretty smooth so here is the rules that i have...

CONSTRAIN ATTRIBUTE: self.size.width to game.left nostril energy

RULE:

when ALL conditions are valid
attribute game.left nostril energy >1
attribute game.left nostril is true

interpolate: self.size.width to 1 (duration 7 function linear)

***OTHERWISE***

when ALL conditions are valid
attribute game.left nostril energy Initial Scene
Sign In or Register to comment.