Discord
Login
Community
DARK THEME

Edit maps with code

I want to be able to add sprites to a map while in game. is there some code that lets me do this?

yes - you can modify the map (tilemap) from the code level.

map = maps["name_map"]
map.set( x, y , sprite_name )
map.get( x, y ) // return name sprite

creating your own map

myMap = new Map( 100, 100, 25, 20 ) // col ,row, block_width, block_height
maps[ "myMap" ] = myMap

Post a reply

Progress

Status

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