Make games on your phone.
Get the app!
AndroidiOS
Castle
play23.6k
193
18 Comments
Next up
Castle Tutorial #1: Custom Colors #cli #tutorial #castle #something550 #fullcolor #fullcolors #customcolour
Here's the extended version: https://s.castle.xyz/-QEP5Lj4M2ks
fire1Reply
There's also a way to make custom colored text! Make a new text blueprint/actor, then add new script. Make sure the script is "my.text.color = { r = ?, g = ?, b = ? }".
fire2Reply
LUA CODE: function rect(x, y, w, h, r, g, b) castle.draw.setColor(r, g, b, 1) castle.draw.rectangle("fill", x, y, w, h) end function onDraw() -- 1:1 area local x = -0.5 local y = -0.5 local w = 5 local h = 1 local barW = w / 5 -- Top bars local topH = h * 1 rect(x + barW*0, y, barW, topH, 0.??, 0.??, 0.??) end - the "??" are for you to fill with numbers.
fire2Reply
Something550 where is the chat button ending game 2?
fire1Reply
Yoooo! Someone actually credited me for once!
fire1Reply
sorry if it’s too much to ask but What about text boxes with custom colors?
fire1Reply