playMaker
Home
Store
Showcase
Tutorials
Forums
Manual
Wiki
About Us
Playmaker Forum
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email
?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
Join our
Discord Channel
Home
Help
Search
Login
Register
Playmaker Forum
»
PlayMaker Help & Tips
»
PlayMaker Help
(Moderator:
600
) »
Texture variables (changing at runtime?)[SOLVED]
« previous
next »
Print
Pages: [
1
]
Go Down
Author
Topic: Texture variables (changing at runtime?)[SOLVED] (Read 1780 times)
nelsonn
Playmaker Newbie
Posts: 31
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
»
Logged
Follow me on Twitter
and check out my
portfolio!
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
Logged
nelsonn
Playmaker Newbie
Posts: 31
Re: Texture variables (changing at runtime?)
«
Reply #2 on:
November 14, 2013, 08:16:22 AM »
Cheers, that helped
Logged
Follow me on Twitter
and check out my
portfolio!
Print
Pages: [
1
]
Go Up
« previous
next »
Playmaker Forum
»
PlayMaker Help & Tips
»
PlayMaker Help
(Moderator:
600
) »
Texture variables (changing at runtime?)[SOLVED]