Set Graphic

Description

The Set Graphic behavior will change the graphic of a selected object to another desired graphic asset. 

Note that this does not affect the objects collision shape. Your object will still use the original collision bounding box. This means if you set a larger graphic than the original, the collision boundaries will still be the smaller original shape.

This behavior will Trigger an event immediately when executed. As soon as the behavior is executed it will set your object to the new graphic.

Properties

Object A

This is the object you want to change. By default the current object is selected, but you can tap the graphic and choose any other object in your scene.

New Graphic

This is the new graphic that your object will use when the behavior is executed.

Outputs

This behavior has no outputs.

Examples

If you have created a powerup or item and want to change your character graphic to the "powered up" version you can use the Set Graphic behavior to select the new version of your character.

 

 

Have more questions? Submit a request

0 Comments

Please sign in to leave a comment.
Powered by Zendesk