Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Dark GDK / 2D Making Maps ??

Author
Message
TheRensRens
14
Years of Service
User Offline
Joined: 9th Jan 2010
Location:
Posted: 9th Jan 2010 19:34
Hi,
I want to know how to make maps and Tilesets Etc to so
I don't have to dbLoadImage every tile in a map.
There is one thing I know about Making maps and that is
that you have to do something like this:

1111111
1000001
1000001
1000001
1111111

But how to do it on the right way :S
Already Thanks
TheRensRens
Marsh0
15
Years of Service
User Offline
Joined: 18th Mar 2009
Location:
Posted: 9th Jan 2010 20:17 Edited at: 9th Jan 2010 20:19
Here is how i do it, this may be a bad method as i dont really put alot of time into the proper way of doing things.



That will draw a 300 tile map 15 x 20 32 pixels per tile using only 1 sprite.

data[1] will contain the first tile etc. I have mine reading out of a text file.

You need a groundlayer = 1; at the very end of your loop. I did not show the code of reading the file or getting it into the correct format. but this is the general idea. you basically just need to set the sprite frame to the tile you want then paste it.
Cuddle Bunniezzz 12
15
Years of Service
User Offline
Joined: 14th Jan 2009
Location: Buffalo, NY
Posted: 10th Jan 2010 01:18
I don't really want to push my own website, but I've got a tutorial up for it right here:

http://www.darkgdk.us/index.php?page=12

http://www.darkgdk.us/ <- You can now submit pages, upload images, yet were lacking content. We need your help!
TheRensRens
14
Years of Service
User Offline
Joined: 9th Jan 2010
Location:
Posted: 10th Jan 2010 10:11 Edited at: 10th Jan 2010 12:03
Wow thanks I'm going to try it. I Thought It would be
much harder to do.

Can I ask something else ??
I wanted to make a 2D Platform game.
everything goes well except the jump if I press the Upkey
The sprite goes up and up (flying) when I release the button
it falls down. So I wanted to try with intergers. Or I can fly
or the spite does nothing.

Already Thanks
TheRensRens

Edit: How to make Collision for the tiles ?? so I can make an platform game (or RPG)

Login to post a reply

Server time is: 2024-11-20 07:32:08
Your offset time is: 2024-11-20 07:32:08