From 7ca29bfaa7a23d06374c2456e0360c911bd9aa3e Mon Sep 17 00:00:00 2001 From: Juan Linietsky Date: Sat, 22 Feb 2014 20:28:19 -0300 Subject: -added kinematic body -added kinematic body demos --- demos/2d/kinematic_char/colworld.gd | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 demos/2d/kinematic_char/colworld.gd (limited to 'demos/2d/kinematic_char/colworld.gd') diff --git a/demos/2d/kinematic_char/colworld.gd b/demos/2d/kinematic_char/colworld.gd new file mode 100644 index 0000000000..efd1dab805 --- /dev/null +++ b/demos/2d/kinematic_char/colworld.gd @@ -0,0 +1,17 @@ + +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 + get_node("youwin").show() -- cgit v1.2.3