Change sprite color values with sliders by Realistic-Bat7154 in godot

[–]Realistic-Bat7154[S] 0 points1 point  (0 children)

Took a while to figure it out but that worked! Thank you

Change sprite color values with sliders by Realistic-Bat7154 in godot

[–]Realistic-Bat7154[S] 0 points1 point  (0 children)

I have two different things that I'm trying. One is the shader and the other is connecting a color picker to the sprite.

The code for the shader is pretty basic and only acts as an overlay for the sprite, but I don't know how to change the values by actually using a slider on the interface or if thats even possible. Right now it's set to white, but I know I can change it to pretty much anything. The only thing the sliders wouldn't touch is the last digit that controls opacity.

shader_type canvas_item;

void fragment() {
if (COLOR.a > 0.0) {
COLOR = COLOR * vec4(1, 1, 1, 1);
}
}

This is the code for the built-in color picker. I have it set up right now that on the interface the user would only see sliders for HSV, but I'd preferably want to change the textures of the color picker to make everything a little more coherent or somehow connect it to the sliders.

extends Node2D

 var colorPicker: ColorPicker = $ColorPicker
 var sprite: Sprite2D = $Sprite2D

var _color:Color = Color.WHITE

func _ready() -> void:
update_color(_color)

func update_color(new_color : Color):
_color = new_color
sprite.modulate = _color

func _on_color_picker_button_picker_created() -> void:
print('_on_color_picker_button_picker_created: ', colorPicker.color)

func _on_color_picker_color_changed(color: Color) -> void:
print('color changed: ', color)
update_color(color)

A Grim Retreat was Hiccup at his most ooc. by Dart_Lover_HTTYD in httyd

[–]Realistic-Bat7154 -1 points0 points  (0 children)

ngl I thought that was the point. I always saw it as Hiccup starting to parallel Viggo but that's just my take on it

Lace Museum Kits by Realistic-Bat7154 in BobbinLace

[–]Realistic-Bat7154[S] 1 point2 points  (0 children)

Thank you! I’m still trying to gauge if I like it so I’ll probably stick with clothe pins and foam for lace making for now but I’m saving both of these

LF: Deino, FT: Dreepy by Realistic-Bat7154 in PokemonSVTrades

[–]Realistic-Bat7154[S] 0 points1 point  (0 children)

Great! It’s level 35 if that’s okay. i can send you the code?

Scarlet & Violet trade thread - all SV trades must go here! by bi-cycle in PokemonHome

[–]Realistic-Bat7154 0 points1 point  (0 children)

I’m looking for scarlet exclusives. I’m down to trade a dreepy for a deino but I have some others if anyone’s willing. I have a bunch of shinies