From 48ec0c122fcb9b53375340cda1a2d746bcf981e9 Mon Sep 17 00:00:00 2001 From: Midras Lappe <midras.lappe@hs-bochum.de> Date: Tue, 9 Mar 2021 15:19:55 +0100 Subject: [PATCH] Changed Error with LKW Mob on wrong Lane --- Autobahn_auffahren__uebergabe_V12/World.gd | 3 ++- Autobahn_auffahren__uebergabe_V12/World.tscn | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Autobahn_auffahren__uebergabe_V12/World.gd b/Autobahn_auffahren__uebergabe_V12/World.gd index 450868c..5d3d840 100644 --- a/Autobahn_auffahren__uebergabe_V12/World.gd +++ b/Autobahn_auffahren__uebergabe_V12/World.gd @@ -37,7 +37,7 @@ var done = false var human_player = false export var actions = [] -export var learn_with_images = true +export var learn_with_images = false export var show_game = true func _ready(): @@ -87,6 +87,7 @@ func prepareMap(): else: activeMap = randi()%3+1 + if activeMap == 1: $Lane1Spawn.global_position = $map1Lane1Spawn.global_position $Lane2Spawn.global_position = $map1Lane2Spawn.global_position diff --git a/Autobahn_auffahren__uebergabe_V12/World.tscn b/Autobahn_auffahren__uebergabe_V12/World.tscn index 2db7a6e..c10fabd 100644 --- a/Autobahn_auffahren__uebergabe_V12/World.tscn +++ b/Autobahn_auffahren__uebergabe_V12/World.tscn @@ -169,10 +169,10 @@ autostart = true position = Vector2( 3174.53, 5520.1 ) rotation = 3.14159 -[node name="map1Lane1Spawn" type="Position2D" parent="."] +[node name="map1Lane2Spawn" type="Position2D" parent="."] position = Vector2( 237.041, 243.776 ) -[node name="map1Lane2Spawn" type="Position2D" parent="."] +[node name="map1Lane1Spawn" type="Position2D" parent="."] position = Vector2( 100.316, 244.205 ) [node name="map1CarSpawn" type="Position2D" parent="."] -- GitLab