How to load tilemaps?

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
integralsleeper
Prole
Posts: 3
Joined: Sun Apr 13, 2014 10:22 pm

How to load tilemaps?

Post 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.
Attachments
Super Power - working.love
(63.49 KiB) Downloaded 111 times
Super Power - broken.love
(64.46 KiB) Downloaded 110 times
integralsleeper
Prole
Posts: 3
Joined: Sun Apr 13, 2014 10:22 pm

Re: How to load tilemaps?

Post 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.
Attachments
kinda working.zip
(63.84 KiB) Downloaded 108 times
Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 3 guests