This game looks pretty good! A gravity gun in CRAZY! Good job with your game
@lmptfyouАй бұрын
Thank you! Excited to add some more. First I’ll do graphics update tho today.
@lmptfyouАй бұрын
Quick correction I was using window size but needed to use the viewport size for calculating the shaders UV center, here's updated code: func _ready() -> void: animation_player.play("Open") size = get_viewport_rect().size func _process(delta: float) -> void: var sprite_pos = distort.get_global_transform_with_canvas().get_origin() var uv_pos = Vector2(sprite_pos.x/size.x, sprite_pos.y/size.y) var shader_mat : ShaderMaterial = distort.material shader_mat.set_shader_parameter("center", uv_pos)