Hi happycamper, thanks for helping !!
I put this line in the titlescreen's script :
func _on_loadbutton_pressed():
get_node("/root/global").goto_scene("/root/ingame",true)
the first argument should be a node, right ? But if the scene it's in is not loaded yet, how can it be targetted ? Should I put "res://scenes/ingame.tscn" instead ? (none seem to work)
and how the gotoscene and prepscene work together ?
The way I understand it, is :
1/ running gotoscene with loading = 1
2/ running prepscene
3/ running goto_scene with loading = 0