playMaker

Author Topic: Texture variables (changing at runtime?)[SOLVED]  (Read 1747 times)

nelsonn

  • Playmaker Newbie
  • *
  • Posts: 31
    • check out my portfolio :)
Texture variables (changing at runtime?)[SOLVED]
« 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?
« Last Edit: November 15, 2013, 06:12:22 AM by jeanfabre »

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Texture variables (changing at runtime?)
« Reply #1 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

nelsonn

  • Playmaker Newbie
  • *
  • Posts: 31
    • check out my portfolio :)
Re: Texture variables (changing at runtime?)
« Reply #2 on: November 14, 2013, 08:16:22 AM »
Cheers, that helped :D