test-client-godot/portail.gd

16 lines
569 B
GDScript3
Raw Normal View History

extends Spatial
export( String ) var scene_path = ""
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) )
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 )