? Using SCROLL for a textgame. (Page 1) ● SmileBASIC Source Forums

Sign In

Register
*Usernames are case-sensitive
Forgot my password
Contest results!

Using SCROLL for a textgame.

  • #1 ✎ 121 ResetReload Night Person I like the quiet night and sleep late. Express Yourself Intermediate Programmer I can make programs, but I still have trouble here and there. Programming Strength Video Games I like to play video games! Hobbies Hello. I'm using SCROLL X,Y to scroll the text in my text-based world. It works perfectly fine on the x-axis, but I'm having issues for the y-axis as there is seemingly no way to PRINT any text lower than y0 or higher than y29. I have the text for the environment saved to variables so I'm sure the solution lies with them, but I can't figure it out as of yet. So, in short: Can't PRINT text lower than 0 or higher than 29. I want a way to get around this. I'm using SCROLL. I'm using text variables. Does anyone have a solution? The game's code number is 8JE423K4. Yes, I know the game's code format is probably hideous. It's more of a personal project. Posted
  • #2 ✎ 138 Warrior Expert Programmer Programming no longer gives me any trouble. Come to me for help, if you like! Programming Strength Night Person I like the quiet night and sleep late. Express Yourself Drawing I like to draw! Hobbies I haven't downloaded your game yet, but you can use GPUTCHR which allows you to to place text anywhere and isnt confined to to the the spots LOCATE allows for. Posted
  • #3 ✎ 1055 randomous Owner Robot Hidden Easter Eggs Second Year My account is over 2 years old Website Drawing I like to draw! Hobbies Try a different approach: make an 8 pixel border around the game on the graphics layer with GLINE or something so new areas are "drawn" in underneath but still within the screen. That way, players don't see the redraws at the edge of the screen but you're still within the 0-29 range. Also don't forget that printing at the bottom requires a semicolon like PRINT "YEAH"; so it doesn't insert a new line and scroll the screen automatically. Posted
  • #4 ✎ 121 ResetReload Night Person I like the quiet night and sleep late. Express Yourself Intermediate Programmer I can make programs, but I still have trouble here and there. Programming Strength Video Games I like to play video games! Hobbies I got it working. Here’s the working code for anyone interested: NRVEE373 I don’t know how to really explain how I made it work, but I made another variable and put it in the Text$[]. The variable is the Y value plus 1 per line. If you look at the code it will make more sense. Posted