RingOfRaces/Global_Game.gd
JonathanHerrewijnen 52eaa3c498 Added sound
2021-06-04 22:57:48 +02:00

10 lines
273 B
GDScript

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)