otorp2

vector2array

Jan 13th, 2016
146
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1.  
  2. extends Node2D
  3.  
  4.  
  5. func _ready():
  6. var i = 0
  7. var array1 = Vector2Array([])
  8. array1.resize(3)
  9. array1.set(0,Vector2(78,53))
  10. if array1.size() <= 3:
  11. print("true")
  12. array1.set(2,Vector2(50,50))
  13. print(array1.get(2))
  14. print(array1.size())
  15.  
  16. pass
Add Comment
Please, Sign In to add comment