Advertisement
otorp2

simple parameter on func

Nov 13th, 2015
248
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. extends Node2D
  2.  
  3.  
  4.  
  5. func _ready():
  6.  
  7.  
  8. pass
  9.  
  10. func cheese_and_crackers(cheese_count,boxes_of_crackers):
  11. print("You have %d cheeses!" % cheese_count)
  12. print("You have %d boxes of crackers!" % boxes_of_crackers)
  13. pass
  14.  
  15. func _on_Timer_timeout():
  16. cheese_and_crackers(4,8)
  17.  
  18. pass # replace with function body
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement