Add to Life Indicator

Description

The Add to Life Indicator behavior will increase the number of "lives" represented by your life indicator. You can also use negative numbers to decrease the indicated lives,.

This behavior will trigger an event once the indicated lives have reach zero, or they have reached their maximum number.

 

Properties

Object A

This is the life indicator UI object will be increased or decreased. If there is a a Life Indicator object on your UI layers it will automatically be selected. If you do not have a life indicator added, then make sure to add one and then select it here.

Value

This is the amount to add to the lives indicator. eg. If you add 1, it will show 1 more life graphic.

Maximum Life

This is the maximum number of lives your indicator will track.

Event on Full

When this toggle switch is on, the behavior will trigger an event (the next connected behavior) once the indicated lives reach the maximum life number.

By default this toggle switch is off.

Event on Empty

When this toggle switch is on, the behavior will trigger an event (the next connected behavior) once there are 0 lives left.

By default this toggle switch is on.

Outputs

Life Indicator Value

Returns the current number of lives.

 

Examples

If you've created a game like Zelda, where the lives are indicated by hearts (or some other graphic) you can use this behavior to increase or decrease the Life Indicator object on your UI layer.

Additionally, you can use this to count the number of other things and not just lives. eg. Ammo, weapon, items etc. 

 

Related

 Set Life Indicator

Have more questions? Submit a request

0 Comments

Please sign in to leave a comment.
Powered by Zendesk