Godot Engine

Godot Engine

Knight Jul 12, 2017 @ 9:39am
Need help with going to the next level
ok, so I have a "Player", I have a Level 1.scn and a Level 2.scn, I also have a "End" point for my player. what I simply want is that when my player hits the end point it automatically goes to the next level. now im not a programmer so programming to me in godot is foreign language. I just need a simple script to make it happen, please help
< >
Showing 1-2 of 2 comments
IceWind Aug 8, 2017 @ 2:28am 
It is not clear what you mean with "end point" and "hit" but you can implement a scene change with:

get_tree().change_scene("res://path/to/scene.scn")

You can read about this stuff here:
On Reddit
In the official Docs[docs.godotengine.org]

Or do you prefer videos?
Gamesfromscratch on Youtube
Knight Aug 8, 2017 @ 6:56am 
Originally posted by IceWind:
It is not clear what you mean with "end point" and "hit" but you can implement a scene change with:

get_tree().change_scene("res://path/to/scene.scn")

You can read about this stuff here:
On Reddit
In the official Docs[docs.godotengine.org]

Or do you prefer videos?
Gamesfromscratch on Youtube
videos or docs help, thank you
< >
Showing 1-2 of 2 comments
Per page: 1530 50

Date Posted: Jul 12, 2017 @ 9:39am
Posts: 2