RingOfRaces/Global_Game.gd

9 lines
272 B
GDScript3
Raw Normal View History

2021-05-28 21:01:56 +00:00
extends Node2D
#Global functions for the game, like speech bubbles
func RenderSpeech(load_on, text):
var speech = preload("res://GameScenes/speech_bubble/Speech.tscn").instance()
speech.bubble_text = text
speech.set_position(Vector2(0,-40))
load_on.add_child(speech)