map editor 2

BlitzMax Forums/BlitzMax Beginners Area/map editor 2

This is what you want:

Function place()
		
   If MouseDown(KEY_MOUSELEFT) 

      map[ MouseX() / 50, MouseY() / 50 ] = curtile
	
   Endif
	
End Function