Guest User

Untitled

a guest
Sep 26th, 2017
192
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. extends TextureRect
  2.  
  3. onready var selection = $"selection"
  4.  
  5. var selected = 0
  6. var selections = ["1", "2", "3", "4", "5", "6"]
  7.  
  8. func _ready():
  9.  
  10. pass
  11.  
  12. func _process(delta):
  13. for i in range(0, selections.size()):
  14. if (Input.is_action_just_pressed(selections[i])):
  15. selection.rect_position = Vector2(2 + 66.5 * i, 0)
Advertisement
Add Comment
Please, Sign In to add comment