Discord
Login
Community
DARK THEME

image.drawMap

    x = 100
    y = 100    
    buff = new Image( x, y )         
    buff.drawMap( mymap, 0, 0, x, y )

    screen.drawImage( buff, 0, 0, x, y )

The Image class drawMap is not working properly. When I want to draw a tile map on the buff object (Image class), I cannot see that the map was drawn.

    screen.clear()
    screen.drawMap( mymap, 0, 0, x, y )

    screen.clear()
    buff.drawMap( mymap, 0, 0, x, y )
    
    screen.drawImage( buff, 0, 0 , x, y )

However, when I first draw this map over the screen object. The tile map will then appear on the buff object.

Please write down what language and library you are using. And provide the full project code, then it will be possible to understand what is happening :)

code >>> https://microstudio.dev/i/Loginus/sca/

Uncomment the lines and restart the program, you will see the tile map.

I have the same issue (I think!) - see this recent thread: https://microstudio.dev/community/questions/map--sprite-scaling/465/

Post a reply

Progress

Status

Preview
Cancel
Post
Validate your e-mail address to participate in the community