Twine Version: 2.8.1
Hi there, I’ve been trying to improve a text adventure game I’ve made and I’m at a loss of what could be causing the issue.
Basically, when the user clicks through the game, the screen flickers off to the left and then back to the middle again. It’s a little hard to describe so I’ve included a clip for a better visual and the code in the previewed in the clip. Does anyone know what may be causing it and how to fix it?
Sorry if the code is a mess, I’m still learning.
Welcome page
(set: $name to (prompt: "What is your name great adventurer?", "Atlas", ))Welcome $name, to the The Digital Odyssey: A Quest for Knowledge. This is a short (text-colour:orange)[interactive] text adventure designed to promote the importance of Archives & emerging technologies.
❔ [[How to play the game]]
🎼 Mood music play: (link: "Nebula")[(open-url:'https://www.youtube.com/watch?v=VsOykR7cj_g')]
Are you ready to start your adventure into [[The Archive|Game Start]]?
(set: $HasTorch to false)(set: $HasKey to false)(set: $HasKeycard to false)(set: $ChestInfo to false)(set: $KeycardInfo to false)(set: $LegendInfo to false)(set: $ChamberInfo to false)(set: $Chest to false)(set: $Chamber to false)(set: $Keypad to false)(set: $Legend to false)(set: $Holo to false)(set: $HoloInfo to false)(set: $Trap to false)(set:$computer to false)(set: $FF1 to false)(set: $FF2 to false)(set: $FF3 to false)(set: $Q1Info to false)(set: $Q2Info to false)(set: $Q3Info to false)(set: $Q4Info to false)(set: $Q5Info to false)(set: $Q6Info to false)(set: $Q7Info to false)(set: $ChestAnswer to false)(set: $KeypadAnswer to false)(set: $LegendAnswer to false)(set: $decipher to false)(set:$path to false)(set: $ChestEncounter to false)(set:$KeypadEncounter to false)(set:$LegendEncounter to false)(set:$password1 to false)(set:$password2 to false)(set:$password3 to false)(set: $lastPassage to "")
Game Start
You find yourself in a world where the ancient and modern collide in a realm known as the Archive of Ages. Your quest is to unlock the secrets of digitisation and its importance in preserving history.
Are you ready to embark on this mysterious journey?
[[Yes|The Archive]] (link: "No")[<script>window.close()</script>]
[[❔How to play the game|How to play the game]]
The Archive:
(if: $path is "A")[<img src= "Enterance.png" width=40% align="right" style="margin: 20px;">The lingering sense of ancient wisdom stays with you as you leave the Path of Ancient Scrolls. The dimly lit corridors lined with forgotten texts have sparked your curiosity, but as you step back into the entrance area, your gaze is drawn to the shimmering glow of the Path of Technological Marvels. You wonder what might await you in the realm of digital archives, where innovation and preservation blend in dazzling new ways. At the same time, the faded echoes of the Path of Lost Legends call to you—whispers of myth and heroism, stories lost to time, waiting to be rediscovered. The Archive of Ages offers endless mysteries, each path a new way to uncover the past.](else-if: $path is "B")[<img src= "Enterance.png" width=40% align="right" style="margin: 20px;">As you step away from the advanced technology and digitised archives of the Path of Technological Marvels, your mind is still racing with possibilities. But as you return to the entrance area, the quiet, timeless air of the Path of Ancient Scrolls feels like a different world—a place where the past is preserved in the delicate weave of ink and parchment. You also feel the pull of the Path of Lost Legends, where myths and forgotten histories beckon with the promise of uncovering stories that could reshape the known world. The choice ahead feels vast, both paths offering their own form of discovery.](else-if: $path is "C")[<img src= "Enterance.png" width=40% align="right" style="margin: 20px;">The echoes of legendary tales and forgotten kingdoms fade as you step back into the entrance area. The Path of Ancient Scrolls still calls to you, its promise of uncovering long-buried knowledge written by hand and preserved through centuries. But the glowing lights from the Path of Technological Marvels tug at your mind as well. Here, the future of history preservation waits, with its advanced holograms and digital wonders, offering a chance to glimpse how history could be protected and shared in the digital age. Both paths stand before you, holding equal weight, each filled with untold secrets.](else-if:$HasTorch is true and $HasKeycard is true and $Trap is true and $HoloInfo is true)[<img src= "Enterance.png" width=40% align="right" style="margin: 20px;">As you stand once more at the entrance, the weight of your journey is upon you. The knowledge of the past, the mysteries of lost legends, and the wonders of technological marvels have all unfolded before your eyes. Yet, there remains one final step—one final mystery to uncover. The Hidden Chamber, a place whispered about but never fully revealed, calls you back. The Path of Ancient Scrolls, with its dusty tomes and ancient wisdom, now feels like the gateway to something far greater. With the key and torch in hand, you turn away from the bright, digital allure of the other paths and venture once more into the depths of the archive. What secrets will this hidden sanctum hold? The chamber, filled with untold knowledge, awaits your discovery.](else:)[<img src= "Enterance.png" width=40% align="right" style="margin: 20px;">You stand at the entrance of the Archive of Ages, a sprawling labyrinth of corridors filled with relics of bygone eras and whispers of forgotten tales.]
Before you stretch three paths, each leading to a different realm within the archive. These paths not only represent different epochs but also reveal how digitisation and (text-colour:orange)[knowledge sharing] play pivotal roles in preserving and disseminating historical information.
(if:$Computer is true)[Search [[computer?|Notion 95]]]
(if: $HasTorch is true and $HasKeycard is true and $Trap is true and $HoloInfo is false)[Which path will you choose?
[[1. Path to the Hidden Chamber|Ignore chest]]
[[2. Path of Technological Marvels to speak with the holographic sage|Engage with the holographic sage for guidance.]]] (else-if: $HasTorch is true and $HasKeycard is true and $Trap is true and $HoloInfo is true)
[Which path will you choose?
[[1. Path to the Hidden Chamber|Endgame]]]
(else:)[Which path will you choose?
[[1. Path of Ancient Scrolls|Ancient Scrolls]]
[[2. Path of Lost Legends|Path of Lost Legends]]
[[3. Path of Technological Marvels|Path of Technological Marvels]]]
[[🎒Inventory|Inventory]]
[[📒Notebook|Notebook]]
(set:$Q1Info to true)
Header tag:
(enchant:?page,
(text-color:black)+
(background:(gradient: 157, 0,#EAF0F7,0.7102,#C1D2E7,1,#F8F7FF))+
(font:"Open Sans")
)(enchant:?passage,
(background:(white)) +
(corner-radius:20) +
(border:"none", "none", "none", "solid")+
(border-size:120) +
(border-color:#6F95C8))
(enchant:?link,
(background:#052650) +
(border:'solid') +
(color:white) +
(corner-radius: 12) +
(border-color:#F8F7FF) +
(border-size:1) +
(hover-style: (bg:#3168b0) + (border-color:white))
)(unless: (passage:)'s tags contains "menu")[(set: $lastPassage to (passage:)'s name)]
Style sheet:
tw-include[name="Game Start"] {
display: none;
}