What's a clean/simple way to do side-scroller collision?

General discussion about LÖVE, Lua, game development, puns, and unicorns.
Post Reply
User avatar
Fourex
Citizen
Posts: 53
Joined: Tue Nov 10, 2009 2:33 am
Location: Earth

What's a clean/simple way to do side-scroller collision?

Post by Fourex »

I'm experimenting with a side-scrolling game. I can't figure out a good way to check when my main character is running into walls, or on the ground. I need a way to check if he is hitting his left, right, bottom, and top sides. Does anyone know of any tutorials, or examples? It doesn't really need to be for Love specifically, I just need a basic method. Thanks in advance!
User avatar
Fourex
Citizen
Posts: 53
Joined: Tue Nov 10, 2009 2:33 am
Location: Earth

Re: What's a clean/simple way to do side-scroller collision?

Post by Fourex »

Thanks!

EDIT: Woah, this, and the other tutorials on that blog, are basically everything I will ever need to know for platformer collisions...
Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 25 guests