maxgui: how to make a tile editor

BlitzMax Forums/BlitzMax Programming/maxgui: how to make a tile editor

Robert Cummings(Posted 2006) [#1]
Hi all,

How can I make a list of graphic tiles to choose from and a small area to paste them back down on? I have loaded the images using loadImage...?

Thanks!


Dreamora(Posted 2006) [#2]
Create a canvas (vertical).
Put a slider next to it.
Now use the slider position to virtually move the images (by simply modifiying all images y coordinate).

To choose a specific one, you would need to calculate which tile would be there at that time.

I don't know if the problems with 2 DX canvas are solved in 1.20, so it might be needed that you switch to OpenGL


Beaker(Posted 2006) [#3]
What problem with 2 DX canvases?


Grey Alien(Posted 2006) [#4]
Maybe this problem?

http://www.blitzbasic.com/Community/posts.php?topic=59170

OEJ is using 1.20 (I'm fairly sure) so it's not solved, if this is the same problem (sounds like it).


Robert Cummings(Posted 2006) [#5]
Nope. Thats a different problem.

Confirmed dreamoras bug though, and posted in bug reports. Had 2 canvases and the memory of the second is overwriting the first!

This does not happen under opengl!