Advertisement
otorp2

OOP accessing gdscripts example

Jan 4th, 2016
199
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.16 KB | None | 0 0
  1.  
  2. extends Node2D
  3. var myball = preload("Ball.gd")
  4. var ball = myball.new()
  5.  
  6. func _init():
  7. pass
  8. func _ready():
  9. print(ball.a)
  10. pass
  11. # Initialization here
  12. pass
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement