Smooth downward slope movement

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
M3G0
Prole
Posts: 2
Joined: Tue Aug 14, 2018 12:03 pm

Smooth downward slope movement

Post by M3G0 »

Hello again,

I have managed to fix the previous problem and right now working on fixing a new one.

The problem is that when descending the slope, the object descends smoothly on the right to left slopes (<--) however on the left to right (-->) slopes, sometimes, if you look carefully the object bobs down then up when transitioning from solid to slope. And in some rare occasions, the object would simply move past the right wall. How do I make the descent of --> as smooth as the descent of <--?

This time I'll give the file, hope it helps.
Attachments
collisions_p.love
(7.59 KiB) Downloaded 134 times
User avatar
pgimeno
Party member
Posts: 3544
Joined: Sun Oct 18, 2015 2:58 pm

Re: Smooth downward slope movement

Post by pgimeno »

I can't appreciate any difference between the left slope and the right slope.

To be sure the right wall wasn't interfering, I've made the map a bit larger:

Code: Select all

mapdata = {
        {1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1},
        {1,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,1},
        {1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1},
        {1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1},
        {1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1},
        {1,0,0,0,0,0,0,0,1,1,1,0,0,0,0,0,0,0,1},
        {1,0,0,0,0,0,0,1,1,1,1,1,0,0,0,0,0,0,1},
        {1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1},
        {1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1}
}
Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Google [Bot] and 47 guests