Replay.gd 397 B

1234567891011121314
  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. # Called every frame. 'delta' is the elapsed time since the previous frame.
  6. func _process(delta):
  7. self.set_region_rect(Rect2(0,96,96,32))
  8. if(self.get_meta("selected") == true && self.get_meta("disabled") != true):
  9. self.set_region_rect(Rect2(0,32,96,32))