Collision grid

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.
florodude
Prole
Posts: 20
Joined: Mon Jul 30, 2012 10:16 pm

Re: Collision grid

Post by florodude »

Works like a charm! Thank you so much for taking the time to not only help me fix the problem, but sift through all my code and help me fix it step by step!

I do have one bug, however, which I have semi-fixed. With the whole gridx - 1 and gridy - 1, Whenever I start the game, the player jumps to a coordinate that isn't the direction I want it to go when first pressing an arrow key, then from then on it's fine. When I took away the gridx-1 and gridy-1, it worked fine, except for that when you go to the very left or very top, you get an error.
User avatar
micha
Inner party member
Posts: 1083
Joined: Wed Sep 26, 2012 5:13 pm

Re: Collision grid

Post by micha »

You have to put the gridx-1 also in the place where you initialize the player. (beginning of player.lua)
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest