Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: nelsonn on November 14, 2013, 04:42:49 AM

Title: Texture variables (changing at runtime?)[SOLVED]
Post by: nelsonn on November 14, 2013, 04:42:49 AM
Hey guys,

I'm working on a very simply HUD at the moment. One of my GUI Layout labels has a background image. The texture for this is stored in a variable of the type Texture.
It's supposed to be kind of a health bar that changes images based on the player's health.

Is there a way I can change that Texture variable during runtime and thus automatically update my GUI Layout label?
Title: Re: Texture variables (changing at runtime?)
Post by: jeanfabre on November 14, 2013, 05:49:16 AM
Hi,
 
yes, simply reference the texture in a FsmTexture and change that fsmTexture content, it will be then taken in account automatically.

bye,

 Jean
Title: Re: Texture variables (changing at runtime?)
Post by: nelsonn on November 14, 2013, 08:16:22 AM
Cheers, that helped :D