SHARE
TWEET

GAMEBOX 1: SOURCE CODE intro.gd

a guest Sep 20th, 2019 173 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. extends Node2D
  2.  
  3. func _ready():
  4.     pass
  5.  
  6. func popup_player_text(text):
  7.     var popup = load("res://Prefabs/text_popup.tscn").instance()
  8.     popup.text = text
  9.     popup.position = $player.position
  10.     add_child(popup)
  11.    
  12. func popup_friend_text(text):
  13.     var popup = load("res://Prefabs/text_popup.tscn").instance()
  14.     popup.text = text
  15.     popup.position = $friend.position
  16.     add_child(popup)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top