Page 1 of 1

How to load tilemaps?

Posted: Fri Apr 18, 2014 10:03 pm
by integralsleeper
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.

Re: How to load tilemaps?

Posted: Fri Apr 18, 2014 11:50 pm
by integralsleeper
All right. So, I wasn't able to fix my problem 100%, but I was able to kind of do what I want. The thing is, what I am trying to do is have the dude on the green ground. He is stuck 64 pixels from the top of the screen. I am not sure what to do from here.

Thanks again.