I am developing a platformer / sidescroller. The blocking tiles in my level are above layer 0. I do not want to place blocking tiles on layer 0 beneath my other tiles just to create the blocking effect. My projectiles use tiletype(tx,ty) to check collisions, but there is no support for tiletype above layer 0.
Quote:
Originally Posted by Stefan
It's made so that tile layers above zero are not blocking because they are for decoration
|
Please add support for level.tilelayers[i].tiletype(tx,ty).
I would rather not have to create a scripted version using level.tilelayers[i].tiles[x,y] since that would be much less efficient.
Also, please add support for parallax scrolling.
http://en.wikipedia.org/wiki/Parallax_scrolling
Perhaps something like this:
level.tilelayers[i].parallaxscrolling = true;
Then the layers could be scrolled by simply adjusting the x and y of each tilelayer:
level.tilelayers[i].x++;
level.tilelayers[i].y++;
This would allow me to create effects such as repeated scrolling backgrounds, moving clouds, etc. without using multiple npcs.