Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags
0
Members

Tile map collision with non rectangular shapes?

A topic by str created Apr 17, 2016 Views: 772 Replies: 3
Viewing posts 1 to 3
(2 edits)

I am new to SUPERPOWERS and I am currently trying to learn more about this engine by making an 2d platformer.

I currently have a scene with a tilemap and a player object, the player can move and jump on it and everything works as intended (thanks to ArcadeBody2D).

But now I am having problems with implementing what feels like a very basic thing: slopes.

Is there a way to assign a different shape to certain tiles or do I have to do something with tilemap properties? Or something completely different?

I never worked with a physics framework before, so sorry if the answer is obvious, but I couldn't find anything after searching for ~2 hours.


Edit: Okay I try to do it with tileset properties now but the tilemap.getTileAt(layer,x,y) method doesn't exist. All tutorials and documentations I found use it though. Did this method get changed?

I used it very recently, the syntax is:

yourActor.tileMapRenderer.getTileMap().getTileAt(layer, x, y);

Did you write it all? (I used to forget the ".getTileMap()" method)

Turns out I just forgot the brackets after 'getTileMap'.

(I blame it on eclipse)

I wonder if someone have documentation or tricks for a smooth way of walk slopes in a tilemap or ArcadeBody2d Box rectangles :/ 


<3 Ty in advance!