Moonbear2001 / Museum-of-Immersive-Art

2D platformer game made for Rice's COMP 460 senior design course.
MIT License
0 stars 0 forks source link

global scripts losing reference to protagonist on scene transition #8

Closed Moonbear2001 closed 7 months ago

Moonbear2001 commented 7 months ago

On scene transitions there are multiple scripts that lose their reference to the "protagonist".

The ones that I know of: menu.gd InteractionMangaer.gd

They use the get_tree().get_first_node_in_group("protagonist") to get a reference onready and then lose it eventually, causing errors when for example menu.gd tries to reposition the protagonist.