2018-08-20 09:26:50 +00:00
|
|
|
extends Spatial
|
|
|
|
|
2018-08-21 07:01:50 +00:00
|
|
|
export( String ) var scene_path = ""
|
2018-08-20 09:26:50 +00:00
|
|
|
|
|
|
|
func _on_area_body_shape_entered(body_id, body, body_shape, area_shape):
|
|
|
|
print( "PORTAIL AREA BODY SHAPE ENTERED !!!!!" )
|
|
|
|
print( "body_id: "+str(body_id) )
|
|
|
|
print( "body: "+str(body) )
|
|
|
|
print( "body_shape: "+str(body_shape) )
|
|
|
|
print( "area_shape: "+str(area_shape) )
|
2018-08-21 07:01:50 +00:00
|
|
|
if body == character and not scene_path == "":
|
|
|
|
# global.change_level( "game", "res://test_scene/test_scene.tscn", null, global.current_map )
|
|
|
|
global.change_level( "game", scene_path, null, global.current_map )
|
2018-08-20 09:26:50 +00:00
|
|
|
|
|
|
|
|