Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- extends TextureRect
- onready var selection = $"selection"
- var selected = 0
- var selections = ["1", "2", "3", "4", "5", "6"]
- func _ready():
- pass
- func _process(delta):
- for i in range(0, selections.size()):
- if (Input.is_action_just_pressed(selections[i])):
- selection.rect_position = Vector2(2 + 66.5 * i, 0)
Advertisement
Add Comment
Please, Sign In to add comment