Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | Comet |
(Sorry for my english i’m using google translator)
I got this error “Invalid type in built-in function ‘set_value’ in base” ProgresBar “. Cannot convert argument 1 from float to String.”
extends CanvasLayer
onready var hp = experion.hp
func _input(event):
if event.is_action_pressed('ui_focus_next'):
hp -= 10
pass
func _physics_process(delta):
get_node("Control/Healbar").set_value(hp)
if hp >= 1:
hp += delta * 0.6
I feel there may be something wrong with your error message. Right Click and Copy it.
Dlean Jeans | 2019-07-15 08:52