RingOfRaces/Global_InGame.gd

10 lines
259 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://MiscScenes/Speech.tscn").instance()
2021-05-28 21:01:56 +00:00
speech.bubble_text = text
speech.set_position(Vector2(0,-40))
2021-06-04 20:57:48 +00:00
load_on.add_child(speech)