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.

AppGameKit Classic Chat / Tilemap tutorial

Author
Message
Phaelax
DBPro Master
21
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 31st Jan 2024 19:31 Edited at: 2nd Feb 2024 05:25
As I've seen someone ask how to do this every now and then, I've written a basic tutorial building a tilemap in AGK. Covers loading a simple external map file (text file), displaying the tile map, and scrolling. You can view it on my website or download the attached PDF. (you'll still need to go to the site to grab the image used)
There will be a part 2 covering additional features and performance enhancements.

Part 1
https://www.zimnox.com/resources/articles/tutorials/?ar=t007

Part 2
https://www.zimnox.com/resources/articles/tutorials/?ar=t008
Tiled TMX Importer V.2
XML Parser V.2
Base64 Encoder/Decoder
Purple Token - Free online hi-score database
Legend of Zelda
Pixel-Perfect Collision

"I like offending people, because I think people who get offended should be offended." - Linus Torvalds

Attachments

Login to view attachments
Zaxxan
AGK Developer
3
Years of Service
Recently Online
Joined: 17th Nov 2020
Location: England
Posted: 1st Feb 2024 02:41
Nice tutorial, thanks for taking the time to put this together.
Azamaticon
2
Years of Service
User Offline
Joined: 1st Oct 2021
Location:
Posted: 1st Feb 2024 19:15
Thank you! Incredibly useful lesson!
Azamaticon
2
Years of Service
User Offline
Joined: 1st Oct 2021
Location:
Posted: 1st Feb 2024 20:42 Edited at: 1st Feb 2024 20:44
Please tell me how to remove this grid between sprites. Everything is fine with the file. Size 32x32

Attachments

Login to view attachments
Phaelax
DBPro Master
21
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 2nd Feb 2024 05:32
Part 2 is now available on my website. It'll teach you character movement, collision, and how to save memory by using only a handful of sprites to draw a map of any size.


@Azamaticon, try using the following commands on your image before passing it into the sprite.

SetImageMagFilter( iImageIndex, 0)
SetImageMinFilter( iImageIndex, 0)
Tiled TMX Importer V.2
XML Parser V.2
Base64 Encoder/Decoder
Purple Token - Free online hi-score database
Legend of Zelda
Pixel-Perfect Collision

"I like offending people, because I think people who get offended should be offended." - Linus Torvalds

Virtual Nomad
Moderator
18
Years of Service
User Offline
Joined: 14th Dec 2005
Location: SF Bay Area, USA
Posted: 3rd Feb 2024 03:32
nice tutorial, phaelax.

def worthy of:


thanks for sharing

Login to post a reply

Server time is: 2024-04-27 23:27:36
Your offset time is: 2024-04-27 23:27:36