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 / How do I add collision properties to a tile from a tilemap made in Tiled?

Author
Message
SmileSlime
7
Years of Service
User Offline
Joined: 10th May 2017
Location:
Posted: 27th Aug 2017 10:04
I've made a simple tiled map with the tilesets from the SMB(NES) game, and loading it worked fine using Phaelax's Tiled Importer(https://forum.thegamecreators.com/thread/219035). I created a small box that would move around the map, but I can't seem to figure out how to add collision to the tiles so that the box would stop when it hits it. So far a solution hasn't been found.
I love games, who doesn't?
MikeMax
AGK Academic Backer
12
Years of Service
User Offline
Joined: 13th Dec 2011
Location: Paris
Posted: 27th Aug 2017 13:43
you have to create an array of your tiles with a flag (passable ? not passable ?).

The (easy) challenge is to detect the small box coordinates on your tilemap (to detect the tile under) when you move it (but it depends on the kind of tilemap (iso/top-down.. etc)
--------------------------------
Join us on dedicated AppGameKit WeeKChat :
https://week.chat/room/AppGameKit

Login to post a reply

Server time is: 2024-09-30 07:11:00
Your offset time is: 2024-09-30 07:11:00