2D TileMap Editor?

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
Amon
Posts: 3
Joined: Fri Jun 01, 2012 12:55 pm
Contact:

2D TileMap Editor?

Post by Amon » Sat Jun 02, 2012 5:31 pm

I've programmed lots of them, some with GUI and some without. The important thing here is that I know how to write the code for a 2D Tilemap Editor.

What I am looking for is assistance with what Objects to use i.e. what would I use as the main object to draw all the images on etc?

Please forgive the questions or assistance request, I know these things may be covered in a Tutorial or Doc somewhere so again apologies if what I'm asking has been covered before.

Ta!
Image - Amon Interactive Ltd - http://www.amon.co - Tools - LiveCode 5.5 Gold Bundle - Unity3D Pro 3.5 - Photoshop CS6 - Hexagon 2.5.5 - 3DCoat.

I'm never wrong at all; I just discover all ways that don't work.

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7393
Joined: Sat Apr 08, 2006 8:31 pm
Contact:

Re: 2D TileMap Editor?

Post by jacque » Sat Jun 02, 2012 6:35 pm

I'm not exactly sure what the goal is, but it sounds like you just want to lay out images in a grid. If so, you have a couple of choices. The easiest is just to place the actual images onto the card. Each image will be its own object and you can move, hide, show, or delete them at will.

Another option is to lay out a grid of buttons and set the icon of each button to the ID of an imported (and hidden) tile image. There's no particular advantage to this if you will only use the images on a single card. Button icons are useful when you want to duplicate an icon across several cards or objects; you only need one copy of the original image in the stack. If you are only going to show an image in a single place, it's easier to just show the image itself. If you want to show the same image on multiple tiles then use button icons.

In either case, you don't "draw" images; the images are imported onto the card as image objects. The card itself is the background against which the objects are displayed.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

Post Reply