normal.gd 385 B

12345678910111213
  1. extends Sprite2D
  2. # Called when the node enters the scene tree for the first time.
  3. func _ready() -> void:
  4. pass # Replace with function body.
  5. # Called every frame. 'delta' is the elapsed time since the previous frame.
  6. func _process(delta: float) -> void:
  7. self.set_region_rect(Rect2(256,80,256,80))
  8. if(self.get_meta("selected") == true):
  9. self.set_region_rect(Rect2(0,80,256,80))