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 / What is the best way to create a level for my game? (And other questions)

Author
Message
SmileSlime
7
Years of Service
User Offline
Joined: 10th May 2017
Location:
Posted: 21st Aug 2017 06:29
Right now, I am making a simple platformer with AppGameKit Tier 1. Everything is fine with the physics of the player, but I still have no idea how I can create and load maps for my game. I was thinking of something like a tile-based map with each tile having its own properties(collision, physics, etc). If that works, how would I load maps? Also, how would a "camera" work for the player? Is it just the tiles moving while the player stays in the boundary of the game window? I've tried various level editors/tile loaders like Placement Editor(AGK's own map maker) age2d, Rube loader, Placement Editor Professional, and TMX loaders(For files made from Tiled), but it seems that none are fully functional for the latest version of AGK. Please help.
SmileSlime
7
Years of Service
User Offline
Joined: 10th May 2017
Location:
Posted: 21st Aug 2017 06:30 Edited at: 21st Aug 2017 08:51
?

Where did my text go?


Nevermind, I guess it gets visible when approved.
MikeMax
AGK Academic Backer
12
Years of Service
User Offline
Joined: 13th Dec 2011
Location: Paris
Posted: 21st Aug 2017 08:54
you can used Tiled . http://www.mapeditor.org/

And check this thread to get the importer for AppGameKit : (thanx Phaelax !)

https://forum.thegamecreators.com/thread/219035
--------------------------------
Join us on dedicated AppGameKit WeeKChat :
https://week.chat/room/AppGameKit
tmu
7
Years of Service
User Offline
Joined: 2nd Feb 2017
Location:
Posted: 21st Aug 2017 11:01 Edited at: 21st Aug 2017 11:06
What is not working for you with Tiled etc in AGK2? You may need to write your own Tiled map loader, I do not think AppGameKit comes with one.

The "camera" part I guess depends on what type of game it is and what do you mean by "camera" here. Last time I tried this, I loaded the level map from a Tiled file, created sprites for non-empty tiles, positioned them according to the tile coordinates, and the used the view offset to scroll the screen. Player in the middle. Except in the sides the player may need to be moved and background stays put. Or maybe not necessary if you don't want to complicate it.

Not sure about the performance overhead of all the sprites here. Maybe AppGameKit knows to not render some sprites if they are outside the screen area? No idea.

But would be interested to hear about better/more correct ways to do it in AGK. Been a while since I played with this and should do something similar again. What are the best Tiled loaders for AppGameKit and how to use best them/create big levels?

EDIT: OK I see MikeMax linked Phaelax Tiled loader which seems quite nice. Could use some more examples but looks like a good place to start. Still, if your needs are not that complex a simple hack can do as well. But if people have good use examples of the Phaelax loader that would be great..

T
SmileSlime
7
Years of Service
User Offline
Joined: 10th May 2017
Location:
Posted: 21st Aug 2017 12:10
Alright, it's working for me now. Thanks MikeMax. Also, any good guide on how to set collisions on tiles?
MikeMax
AGK Academic Backer
12
Years of Service
User Offline
Joined: 13th Dec 2011
Location: Paris
Posted: 21st Aug 2017 13:35 Edited at: 21st Aug 2017 13:37
Check the examples projects on sprites collisions in your appgamekit projects folder, it depends on a lot of thing and it's specific to your game
--------------------------------
Join us on dedicated AppGameKit WeeKChat :
https://week.chat/room/AppGameKit
SmileSlime
7
Years of Service
User Offline
Joined: 10th May 2017
Location:
Posted: 21st Aug 2017 14:03
Thanks for the help
fubarpk
Retired Moderator
19
Years of Service
User Offline
Joined: 11th Jan 2005
Playing: AGK is my friend
Posted: 25th Aug 2017 00:08
Tile editors are easy enough to create

Theres an easy to follow tile editor on my thread here
https://forum.thegamecreators.com/thread/219932
fubar

Login to post a reply

Server time is: 2024-11-24 09:43:23
Your offset time is: 2024-11-24 09:43:23