Hi. I'm trying to make a map editor for an isometric RPG, and need to know the most effecient way of having the mouse interact with the map fields.
Currently I use this:
If MouseDown(1)=True And MouseX()>383 And MouseX()<415 And MouseY()>349 And MouseY()<381 Then Bonx=0 : Bony=0 : AddTile()
The visible part of the map is 12x12 blocks, so I need to make 143 more lines in the same vein. Something tells me there's a more rational way of doing this? Any input appreciated.
XE
Currently I use this:
If MouseDown(1)=True And MouseX()>383 And MouseX()<415 And MouseY()>349 And MouseY()<381 Then Bonx=0 : Bony=0 : AddTile()
The visible part of the map is 12x12 blocks, so I need to make 143 more lines in the same vein. Something tells me there's a more rational way of doing this? Any input appreciated.
XE