Practice Start.gd 419 B

12345678910111213141516
  1. extends Sprite2D
  2. # Called when the node enters the scene tree for the first time.
  3. func _ready():
  4. pass # Replace with function body.
  5. func ok():
  6. pass
  7. # Called every frame. 'delta' is the elapsed time since the previous frame.
  8. func _process(delta):
  9. self.set_region_rect(Rect2(240,64,184,32))
  10. if(self.get_meta("selected") == true && self.get_meta("disabled") != true):
  11. self.set_region_rect(Rect2(240,0,184,32))