? How to load a map using an array without distortion? (Page 1) ● SmileBASIC Source Forums

Sign In

Register
*Usernames are case-sensitive
Forgot my password

How to load a map using an array without distortion?

  • #1 ✎ 112 Warrior Intermediate Programmer I can make programs, but I still have trouble here and there. Programming Strength Night Person I like the quiet night and sleep late. Express Yourself Drawing I like to draw! Hobbies I’m trying to take bg tiles from an array and load them, and i can do that but the problem is it’s not how it should load. Input: Output: Obviously this is not good and i can not figure out the root of the problem. Here is what i’m running NK43QE9M Posted Edited by Warrior
  • #2 ✎ 1364 12Me21 Admin Syntax Highlighter Received for creating the code syntax highlighter on SBS Night Person I like the quiet night and sleep late. Express Yourself Second Year My account is over 2 years old Website You need to switch X and Y in your array. Access it as WORLD[Y,X] rather than WORLD[X,Y]. (And switch the width and height when creating it) Posted Edited by 12Me21