PDA

View Full Version : Tile based games


groog
06-20-2006, 04:10 PM
I can't seem to find any good tutorials that explain this too me. I have used good so I don't want any "google is your friend" posts but If some one has taken a good tutorial they think works can you direct me to it?

denacioust
06-20-2006, 04:44 PM
Google is your friend...

http://oos.moxiecode.com/

I know you told us not to say that but that was found in two seconds with Google and thats a good tutorial.

groog
06-20-2006, 04:55 PM
It probably was found in two seconds but I was asking if you personally knew any good ones. But I'll take a look at it even though you spent two whole seconds of your time for me. That... just makes me feel... so special :*)

denacioust
06-20-2006, 05:03 PM
Well actually I knew that was the good one I just couldnt remember where it was and Google helped me there...that is a fairly good tutorial there...although unfinished

groog
06-20-2006, 05:22 PM
Yes, it didn't say anything about the map array numbers. I know the numbers are the tile but it should tell me how to set the black and white tiles as the numbers. The overal code didn't work.

Malignus
06-20-2006, 06:00 PM
Back before I decided on my current (much simpler) battle engine, I was thinking of putting together a battle system sort of like that found in Shining Force or Final Fantasy Tactics. Since I don't intend to use what I put together, I'll be happy to post the .fla for others to use. :) Just don't ask me to explain it!

What's here is cobbled together from a few different tutorials and just plain trial-and-error guesswork. Hopefully you'll find it handy. This includes an array-based tile map generator and a guy with movement code (hit control-enter to see what it does). Oh, and feel free to use the included tiles.

groog
06-21-2006, 11:31 AM
I don't use other peoples already made work, especially if they can't explain how it works. That's thievery!

Malignus
06-21-2006, 12:53 PM
It's not thievery, groog--I'm giving it to you. This is what we call a gift. But if you're too good to use it, it's no skin off my back.

The Brown Cow
06-21-2006, 05:10 PM
Yes, it didn't say anything about the map array numbers. I know the numbers are the tile but it should tell me how to set the black and white tiles as the numbers. The overal code didn't work.
It totally did, but fine.

Here's another good site: http://www.tonypa.pri.ee/tbw/
The english is a little broken, but it's very helpful and gets into some advanced stuff.


As for setting tile numbers in the array, just have the code gotoAndStop() the tile movieclip to the number of the array element. If you put a black tile graphic on frame 1, and a white graphic on frame 2, then you can just:
mytile.gotoAndStop(1);
for white or 2 for black. If you feed in the array elements, you can set the graphics from you array. Take another look through the tutorials on those sites.