diff --git a/data/levels/Level1.xml b/data/levels/Level1.xml
index a85199a..22ba109 100644
--- a/data/levels/Level1.xml
+++ b/data/levels/Level1.xml
@@ -13053,6 +13053,22 @@
105
0
+
+ firstCheckpoint
+ false
+ -70
+ 23
+ 105
+ -
+ -
+ 25
+ false
+ 0
+ firstCheckpoint.lua
+ 0
+ 105
+ 0
+
diff --git a/data/levels/scripts/firstCheckpoint.lua b/data/levels/scripts/firstCheckpoint.lua
new file mode 100644
index 0000000..8231bfd
--- /dev/null
+++ b/data/levels/scripts/firstCheckpoint.lua
@@ -0,0 +1,15 @@
+local global = require("global")
+if(global.triggeredFristCheckpoint == nil) then
+ global.triggeredFristCheckpoint = false
+end
+
+function trigger(objectToChange)
+ if(global.triggeredFristCheckpoint == false) then
+ if(not level) then
+ print("No level found in Lua!")
+ return
+ end
+ global.triggeredFristCheckpoint = true
+ print("firstCheckpoint")
+ end
+end
diff --git a/data/levels/scripts/resetPlayer.lua b/data/levels/scripts/resetPlayer.lua
index 4e24cf7..525e8d6 100644
--- a/data/levels/scripts/resetPlayer.lua
+++ b/data/levels/scripts/resetPlayer.lua
@@ -9,16 +9,20 @@ function trigger(objectToChange)
print("No level found in Lua!")
return
end
-
- if(global.triggeredOpenFirstDoor == true) then
- if(global.openedSecondDoor == true) then
- if(global.triggeredOpenThirdDoor == true) then
- level:movePlayer(-169.5,21.5,58.5)
+
+ if(global.triggeredFristCheckpoint == true) then
+ if(global.triggeredOpenFirstDoor == true) then
+ if(global.openedSecondDoor == true) then
+ if(global.triggeredOpenThirdDoor == true) then
+ level:movePlayer(-169.5,21.5,58.5)
+ else
+ level:movePlayer(-78.5,21.75,4.5)
+ end
else
- level:movePlayer(-78.5,21.75,4.5)
+ level:movePlayer(17.5,21.0,87.0)
end
else
- level:movePlayer(17.5,21.0,87.0)
+ level:movePlayer(18.0, 23.0, 145.0)
end
else
level:resetPlayer()