Its because you forced it to [20,20]
This works for me
// Project: resizearray
// Created: 2019-03-17
// show all errors
SetErrorMode(2)
#constant screenwidth=1024
#constant screenheight=768
#constant fullscreen=0
#constant screenrate=0
// set window properties
SetWindowTitle( "resizearray" )
SetWindowSize( screenwidth, screenheight, fullscreen )
SetWindowAllowResize( 1 ) // allow the user to resize the window
// set display properties
SetVirtualResolution( screenwidth, screenheight ) // doesn't have to match the window
SetOrientationAllowed( 1, 1, 1, 1 ) // allow both portrait and landscape on mobile devices
SetSyncRate( screenrate, 0 ) // 30fps instead of 60 to save battery
SetScissor( 0,0,0,0 ) // use the maximum available screen space, no black borders
UseNewDefaultFonts( 1 ) // since version 2.0.22 we can use nicer default fonts
#constant x = 20
#constant y = 20
type tm_tile
something
endtype
type tm_Map
bInit as integer
tMap as tm_Tile[x,y] //Resize as loaded
tName as string
tLevel as integer
tWidth as Integer
tHeight as Integer
tDataFileName as string
tTilesImgID as integer
endtype
Global MyMap as tm_Map
do
print(mymap.tMap.length)
if GetRawKeyPressed(32)
MyMap.tMap.length = 30
endif
Print( ScreenFPS() )
Sync()
loop
Tier 1 Developer