so you use titles utils brick center cmaera at tilemap 0 tilmap 0 ut what numbers do i use
If you want to show the whole tilemap, you might need to increase the screen size by pastung this code into the JavaScript editor and substituting the things in the square brackets with a single number:
namespace userconfig {
export const ARCADE_SCREEN_WIDTH = [tilemap width * tile width]
export const ARCADE_SCREEN_HEIGHT = [tilemap height * tile height]
}
Ok thank you!!!
Do i have to add the number part at the start?
It wont work
It won’t work because you can’t have variables in those constants. You have to figure out what the numbers are and then put them in as numbers instead of variables. Also, you can only set it to one size, so you won’t be able to change it while the program is running, only once at the very beginning
I cant figued out
Basically you have to add this code at the top of the JavaScript code to make it work, but with the “[…]” bits replaced with numbers. For example, since tiles are 16 x 16, if I had a 20 x 20 tile tilemap, I would put this code at the top of the JavaScript:
namespace userconfig {
export const ARCADE_SCREEN_WIDTH = 320
export const ARCADE_SCREEN_HEIGHT = 320
}
You’ll have to convert to JavaScript, write the code at the top, and then convert back to blocks.
Ok. Okok
Got it
Is there a way to get it to start at a normal tilemap view, and then expand the view later in the code, rather than have it set at the same size the whole time?
Timers, use the timer extention and put the grey smaller grey blocks in the first timers and the biggest in the last timers
No, you cant change the screen size mid game, because the screen size is loaded at run time
With the zoom extension I think that would be possible, just search it up