1) you will need code to combine with the design mode
code: g.setColor(Util.RGBToHex(0,0,0))
2) create game attribute (red power,green power and blue power)
3) add code to your design mode Flow>Advanced
4) type the set colour code: g.setColor(Util.RGBToHex(0,0,0))
5) replace the zeroes with game attributes in g.setColor(Util.RGBToHex(0,0,0))
old: g.string(Util.RGBToHex(0,0,0))
new: g.string(Util.RGBToHex((getGameAttribute("red power") as Number),(getGameAttribute("green power") as Number),(getGameAttribute("blue power") as Number)))
if you want to use different game attributes,
here is the code (getGameAttribute("your game attribute here") as Number) to replace numbers in code
this is what you should see when previewing code [Main][Preview code][Properties]
7) make sure the game attribute used by this actor is available
8) options, without it, it won;t work - setting
- mouse click
applies to the adjusting button(one will need three, one for red, one for green and one for blue) which controls the value of game attribute used in g.setColor(Util.RGBToHex((getGameAttribute("red power") as Number),(getGameAttribute("green power") as Number),(getGameAttribute("blue power") as Number)))
inf mod - (game attribute getters) as number
one can also use the option behavior info panel opacity - one will need
if it works, please support us by clicking the +1 button
For Multi - save slots or to be used as list,
starting with getters
(getGameAttribute("Any list attribute") as Array[Any Number Attribute, or number]
(getGameAttribute("red power") as Array)[(getGameAttribute("save slot") as Number)]
an example of whole command:
g.setColor(Util.RGBToHEX((getGameAttribute("red power") as Array)[(getGameAttribute("save slot") as Number)],(getGameAttribute("green power") as Array)[(getGameAttribute("save slot") as Number)],(getGameAttribute("blue power") as Array)[(getGameAttribute("save slot") as Number)]));
No comments:
Post a Comment