28c4afeb57
-KinematicBody2D::move now properly recognizes collision exceptions and masks, fixes #1649 -Removed object type masking for KinematicBody2D -Added a test_motion() function to RigidBody2D, allowing simlar behavior to KinematicBody2D::move there.
19 lines
282 B
GDScript
19 lines
282 B
GDScript
|
|
extends Node2D
|
|
|
|
#member variables here, example:
|
|
#var a=2
|
|
#var b="textvar"
|
|
|
|
func _ready():
|
|
#Initalization here
|
|
pass
|
|
|
|
|
|
|
|
|
|
func _on_princess_body_enter( body ):
|
|
#the name of this editor-generated callback is unfortunate
|
|
if (body.get_name()=="player"):
|
|
get_node("youwin").show()
|