erayers [Lexaloffle Blog Feed]https://www.lexaloffle.com/bbs/?uid=60075 Help! Am writing a text adventure maybe <p>Hi, I'm new to the scene here- I'm just writing a text adventure game and I'm looking for a way to scroll the text or just get the player to the &quot;next page&quot; of text? The map I load into the game is only a drawn border or fancy frames for the game... This is the code I have as of now, but the program skips to the last update function when I press the 'X' button/key in the game is the problem I currently am faced with. I also have yet to figure out an inventory system or anything similar. I know my code isn't clean- nor is it efficient, but I'm just looking to do a text adventure. Any help is appreciated however!</p> <p>-- main<br /> cls()<br /> -- prints map<br /> map()<br /> -- beginning<br /> print(&quot;my story text here&quot;,15,20)<br /> print(&quot;my story text here&quot;)<br /> print(&quot;\n&quot;)<br /> print(&quot; (hit x to continue)&quot;)<br /> print(&quot; other buttons displayed here&quot;,20,100)<br /> print(&quot; &quot;)</p> <p>-- button pressed<br /> function _update()<br /> if (btn(X)) then<br /> -- scroll text<br /> cls()<br /> -- prints screen<br /> map()<br /> -- beginning<br /> print(&quot;my story text here&quot;,15,20)<br /> print(&quot;my story text here&quot;)<br /> print(&quot;\n&quot;)<br /> print(&quot; (hit x to continue)&quot;)<br /> print(&quot; other buttons displayed here&quot;,20,100)<br /> print(&quot; &quot;)<br /> end<br /> end<br /> function _update()<br /> if (btn(X)) then<br /> -- scroll text<br /> cls()<br /> -- prints screen<br /> map()<br /> -- beginning<br /> print(&quot;my story text here&quot;,15,20)<br /> print(&quot;(hit the &lt; key to (do &quot;something&quot;)&quot;)<br /> print(&quot;(hit the &gt; to (do &quot;something&quot;)&quot;)<br /> print(&quot;️ other buttons displayed here&quot;,20,100)<br /> print(&quot;my story text here&quot;)<br /> end<br /> end</p> https://www.lexaloffle.com/bbs/?tid=45400 https://www.lexaloffle.com/bbs/?tid=45400 Thu, 18 Nov 2021 22:10:03 UTC