You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
BITMAP ENABLE(160,200,16)
BORDER WHITE
CLS BLACK
DEFINE KEYBOARD ASYNC
tilemap:=LOAD TILEMAP("image/kenney-tiny-town-large.tmx")
PUT TILEMAP tilemap FROM 0,0
This displays part of the tilemap.
However something strange happens to the colours if I add another PUT TILEMAP.
tilemap:=LOAD TILEMAP("image/kenney-tiny-town-large.tmx")
PUT TILEMAP tilemap FROM 0,0
PUT TILEMAP tilemap FROM 0,0
And another causes graphical glitching:
tilemap:=LOAD TILEMAP("image/kenney-tiny-town-large.tmx")
PUT TILEMAP tilemap FROM 0,0
PUT TILEMAP tilemap FROM 0,0
PUT TILEMAP tilemap FROM 0,0
This causes a strange colour problem:
tilemap:=LOAD TILEMAP("image/kenney-tiny-town-large.tmx")
PUT TILEMAP tilemap FROM 0,0
PUT TILEMAP tilemap FROM 1,0
PUT TILEMAP tilemap FROM 2,0
This also causes a strange colour problem:
(Note that the x variable is not actually being used inside the FOR loop)
FOR x=0 TO 0
tilemap:=LOAD TILEMAP("image/kenney-tiny-town-large.tmx")
PUT TILEMAP tilemap FROM 0,0
NEXT x
Using the x inside the loop:
(And this runs much faster than the code above!)
FOR x=0 TO 0
tilemap:=LOAD TILEMAP("image/kenney-tiny-town-large.tmx")
PUT TILEMAP tilemap FROM x,0
NEXT x
The text was updated successfully, but these errors were encountered:
hi Marco.
This displays part of the tilemap.
However something strange happens to the colours if I add another PUT TILEMAP.
And another causes graphical glitching:
This causes a strange colour problem:
This also causes a strange colour problem:
(Note that the x variable is not actually being used inside the FOR loop)
Using the x inside the loop:
(And this runs much faster than the code above!)
The text was updated successfully, but these errors were encountered: