diff options
Diffstat (limited to 'Racing-Game/4WheelCar/BLLine.gd')
| -rw-r--r-- | Racing-Game/4WheelCar/BLLine.gd | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/Racing-Game/4WheelCar/BLLine.gd b/Racing-Game/4WheelCar/BLLine.gd new file mode 100644 index 0000000..042b034 --- /dev/null +++ b/Racing-Game/4WheelCar/BLLine.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/BLWheel") + pass # Replace with function body. + +# Called every frame. 'delta' is the elapsed time since the previous frame. +func _process(delta): + pass + +func _on_BLWheel_slip(): + if(on): + add_point(tempnode.get_global_position()) + + +func _on_BLWheel_end(): + duplicate(1) + on = false |
