How to load tilemaps?
Posted: Fri Apr 18, 2014 10:03 pm
Hello,
I am trying to make an 8 bit style platformer with shooting. I have gotten the jumping to a point where it feels pretty good, but I am trying to implement a scrolling tile system. The one that seems good is AdvTiledLoader. I tried to use it in my code, but it breaks the game, and I don't know why/how.
If you can point me in the right direction, I would appreciate it.
I think that it has something to do with the way that the tutorial I used for jumping draws the world. Somehow the world is the screen cut in half. I don't really understand how this works. I just want to be able to load my guy into a tile based level.
Also I guess, since I am here, could you explain why my camera:scale() won't work? I tried to use it and I can tell the game just infinitely zooms in whenever the value is anything else than 1. I think if I could understand how to draw ground for my guy to stand on, instead of the weird way that the tutorial used it, I would probably make a lot of progress and fix these things.
Cheers.
I am trying to make an 8 bit style platformer with shooting. I have gotten the jumping to a point where it feels pretty good, but I am trying to implement a scrolling tile system. The one that seems good is AdvTiledLoader. I tried to use it in my code, but it breaks the game, and I don't know why/how.
If you can point me in the right direction, I would appreciate it.
I think that it has something to do with the way that the tutorial I used for jumping draws the world. Somehow the world is the screen cut in half. I don't really understand how this works. I just want to be able to load my guy into a tile based level.
Also I guess, since I am here, could you explain why my camera:scale() won't work? I tried to use it and I can tell the game just infinitely zooms in whenever the value is anything else than 1. I think if I could understand how to draw ground for my guy to stand on, instead of the weird way that the tutorial used it, I would probably make a lot of progress and fix these things.
Cheers.