playMaker

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

nelsonn

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

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 12351
  • Official Playmaker Support
    • View Profile
Re: Texture variables (changing at runtime?)
« Reply #1 on: November 14, 2013, 03: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
    • View Profile
    • check out my portfolio :)
Re: Texture variables (changing at runtime?)
« Reply #2 on: November 14, 2013, 06:16:22 AM »
Cheers, that helped :D