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:
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!
[Solved] Question about slopes
Forum rules
Before you make a thread asking for help, read this.
Before you make a thread asking for help, read this.
[Solved] Question about slopes
- 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.
Re: Question about slopes
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.
Edit: Well, not so lucky this time.
Re: Question about slopes
Welp, I finally solved it. Here's the .love if anyone want to have a look.
- Attachments
-
- plat.love
- (69.13 KiB) Downloaded 215 times
Re: [Solved] Question about slopes
Not sure if it intentionally, but the effect that you can hang onto the roof is kinda funny.
Re: [Solved] Question about slopes
Ah, not intended actually. I just haven't done anything concerning the jump and its rules xDKyrremann wrote:Not sure if it intentionally, but the effect that you can hang onto the roof is kinda funny.
Who is online
Users browsing this forum: Google [Bot] and 62 guests