Hello this is my first post in this community, its nice to meet you all :) on petit computer I learned, with the help of a tutorial on the petit computer wiki, how to use an array and BGPUT to make a simple map w/ collision detection. Something like this
DIM MAP [32,24] RESTORE @MAP FOR I=0 TO 23 READ MAPLINE$ NEXT FOR J=0 TO 31 MAP [J,I] IF MID$[MAPLINE $,J,I]=="1" IF MAP [J,I] THEN BGPUT 0,J,I,45,0,0,0 'Now a loop divide py px/8 to get collision data with 1's to represent ground and what nothowever it doesn't seem to be working in smilebasic. I was wondering what changes I should make to the code to get it to work? Or if I have to find another way to pull map data from the array. Any help is appreciated. Thanks for reading :)