test-client-godot/portail.gd

14 lines
431 B
GDScript

extends Spatial
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:
global.change_level( "game", "res://test_scene/test_scene.tscn", null, global.current_map )