Sprite collision

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
Mekapix
Prole
Posts: 3
Joined: Tue Sep 23, 2014 10:07 am

Sprite collision

Post by Mekapix »

Hello, I'm trying to add gravity to this collision example but I can't think of how to do it. My main issue is applying gravity to the player character rather than the world as I added some lines so there's a world with gravity applied but it doesn't work with the character. I've tried binding the character to a body but I don't know where I need to actually place the code that'd allow me to do so. I've looked up quite a few tutorials as well but I can't seem to find any help.
Attachments
main.love
(52.22 KiB) Downloaded 68 times
Post Reply

Who is online

Users browsing this forum: No registered users and 52 guests