summaryrefslogtreecommitdiffhomepage
path: root/Racing-Game/FRLine.gd
diff options
context:
space:
mode:
authorrealtradam <[email protected]>2020-03-14 15:12:51 -0400
committerrealtradam <[email protected]>2020-03-14 15:12:51 -0400
commitf435ce10e93d7798ad4fe43be33cd01a4edd3dfb (patch)
treef77f4c781c1ebdea88cc89b4132c33c310acb69d /Racing-Game/FRLine.gd
parentb536ec904471c8995c1910477ca1c829c2e31af5 (diff)
downloadoptimal-direction-f435ce10e93d7798ad4fe43be33cd01a4edd3dfb.tar.gz
optimal-direction-f435ce10e93d7798ad4fe43be33cd01a4edd3dfb.zip
Initial adding of files
Diffstat (limited to 'Racing-Game/FRLine.gd')
-rw-r--r--Racing-Game/FRLine.gd25
1 files changed, 25 insertions, 0 deletions
diff --git a/Racing-Game/FRLine.gd b/Racing-Game/FRLine.gd
new file mode 100644
index 0000000..3d3614c
--- /dev/null
+++ b/Racing-Game/FRLine.gd
@@ -0,0 +1,25 @@
+extends Line2D
+
+# Declare member variables here. Examples:
+# var a = 2
+# var b = "text"
+var tempnode = 0
+var on = true
+
+# Called when the node enters the scene tree for the first time.
+func _ready():
+ tempnode = get_node("../Cars/4WheelCar/CarBody/Wheels/FRWheel")
+ pass # Replace with function body.
+
+# Called every frame. 'delta' is the elapsed time since the previous frame.
+func _process(delta):
+ pass
+
+func _on_FRWheel_slip():
+ if(on):
+ add_point(tempnode.get_global_position())
+
+
+func _on_FRWheel_end():
+ duplicate(1)
+ on = false \ No newline at end of file