[Solved] Question about slopes

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
User avatar
megalukes
Citizen
Posts: 94
Joined: Fri Jun 27, 2014 11:29 pm
Location: Brazil

[Solved] Question about slopes

Post by megalukes »

I'm developing a small platform game and it has sloped tiles. I've developed platformers before but this is the first time I'm dealing with slopes. The problem is I'm not sure about how to prevent the player from falling off from those tiles when he's moving, like this:
Image

My goal is to make something like Yoshi's Island (go to 6:00): http://youtu.be/_IATqru7Sh8?t=6m
If the player isn't jumping or falling he keeps "attached" to the floor. I have no idea how to make this work so far.
Any help would be great. Thanks! :awesome:
Attachments
loveplat.love
(83.91 KiB) Downloaded 132 times
Last edited by megalukes on Fri Feb 20, 2015 4:28 pm, edited 1 time in total.
bizziboi
Citizen
Posts: 57
Joined: Sat Apr 16, 2011 9:24 am

Re: Question about slopes

Post by bizziboi »

User avatar
megalukes
Citizen
Posts: 94
Joined: Fri Jun 27, 2014 11:29 pm
Location: Brazil

Re: Question about slopes

Post by megalukes »

Ah, thanks. I forgot about this article. I'm trying to apply it here, I'll post something if I succeed.
Edit: Well, not so lucky this time. :death:
User avatar
megalukes
Citizen
Posts: 94
Joined: Fri Jun 27, 2014 11:29 pm
Location: Brazil

Re: Question about slopes

Post by megalukes »

Welp, I finally solved it. Here's the .love if anyone want to have a look. :awesome:
Attachments
plat.love
(69.13 KiB) Downloaded 215 times
User avatar
Kyrremann
Prole
Posts: 28
Joined: Fri Mar 01, 2013 2:17 pm
Location: Oslo, Norway
Contact:

Re: [Solved] Question about slopes

Post by Kyrremann »

Not sure if it intentionally, but the effect that you can hang onto the roof is kinda funny.
User avatar
megalukes
Citizen
Posts: 94
Joined: Fri Jun 27, 2014 11:29 pm
Location: Brazil

Re: [Solved] Question about slopes

Post by megalukes »

Kyrremann wrote:Not sure if it intentionally, but the effect that you can hang onto the roof is kinda funny.
Ah, not intended actually. I just haven't done anything concerning the jump and its rules xD
Post Reply

Who is online

Users browsing this forum: Google [Bot] and 62 guests