Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if Input.GetKey("W") > 0 or Input.GetKey("UpArrow") > 0 and canmove == true then
- if framecounter%40 == 0 then
- Player.sprite.Set("spr_f_maincharau_0")
- end
- if framecounter%40 == 11 then
- Player.sprite.Set("spr_f_maincharau_1")
- end
- if framecounter%40 == 22 then
- Player.sprite.Set("spr_f_maincharau_2")
- end
- if framecounter%40 == 33 then
- Player.sprite.Set("spr_f_maincharau_3")
- end
- if Map.isactive == true and Toriel.isactive == true then
- if Map.y == 195.5 then
- if Map.x >= -312.5 and Map.x <= 445 then
- Map.MoveTo(Map.x, Map.y + 1.5)
- Toriel.MoveTo(Toriel.x, Toriel.y + 1.5)
- end
- end
- if Map.y == -1 then
- if Map.x >= 520 and Map.x <= 880 then
- Map.MoveTo(Map.x, Map.y + 1.5)
- Toriel.MoveTo(Toriel.x, Toriel.y + 1.5)
- end
- end
- if Map.y == 33.5 then
- if Map.x >= 440 and Map.x <= 535 then
- Map.MoveTo(Map.x, Map.y + 1.5)
- Toriel.MoveTo(Toriel.x, Toriel.y + 1.5)
- end
- if Map.x >= 872.5 and Map.x <= 953.5 then
- Map.MoveTo(Map.x, Map.y + 1.5)
- Toriel.MoveTo(Toriel.x, Toriel.y + 1.5)
- end
- end
- Map.MoveTo(Map.x, Map.y - 1.5)
- Toriel.MoveTo(Toriel.x, Toriel.y - 1.5)
- if Map.y == 249.5 then
- if Map.x <= -193 and Map.x >= -293 then
- Map.MoveTo(Map.x, Map.y + 1.5)
- Toriel.MoveTo(Toriel.x, Toriel.y + 1.5)
- if Input.GetKey("Space") > 0 and spacePressed == false then
- if canmove == true then
- Player.sprite.Set("spr_f_maincharau_0")
- canmove = false
- end
- spacePressed = true
- DialogueBox = CreateSprite("UndertaleDialogueBox", "BelowPlayer")
- DialogueBox.x = 320
- DialogueBox.y = 410
- Text = CreateText({"Hi! afagagafafscaafwa", "How are you??"}, {240, 435}, 2000, "BelowPlayer", -1)
- Text.HideBubble()
- Text.progressmode = "manual"
- Text.color = {1.0, 1.0, 1.0}
- TorielFace = CreateSprite("spr_face_torielmadblink_0", "BelowPlayer")
- TorielFace.scale(2,2)
- TorielFace.x = 160
- TorielFace.y = 410
- DEBUG("Hi!")
- TorielFace.SetAnimation({"spr_face_torielmadblink_0", "spr_face_torielmad_1"}, 1/4)
- end
- end
- end
- end
- end
- if spacePressed == true and Text.lineComplete == true then
- DEBUG("It works too!")
- TorielFace.StopAnimation()
- TorielFace.SetAnimation({"spr_face_torielmadblink_0", "spr_face_torielmad_1"}, 1/4)
- end
- if spacePressed == true and Text.allLinesComplete == true and Input.GetKey("Z") < 0 then
- TorielFace.StopAnimation()
- if Input.GetKey("Z") > 0 then
- spacePressed = false
- Text.DestroyText()
- DialogueBox.Remove()
- Toriel.Remove()
- TorielFace.Remove()
- BlackLayer.Remove()
- Map.Remove()
- wavetimer = 0
- EndWave()
- Player.sprite.scale(1,1)
- require "Encounters/encounter"
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement