Smooth downward slope movement

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
M3G0
Prole
Posts: 2
Joined: Tue Aug 14, 2018 12:03 pm

Smooth downward slope movement

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

pgimeno
Party member
Posts: 1366
Joined: Sun Oct 18, 2015 2:58 pm

Re: Smooth downward slope movement

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}
}

Thrust II Reloaded - GifLoad for Löve - GSpöt GUI - My NotABug.org repositories - portland (mobile orientation)
The MS-Github repositories I had have been closed after the acquisition announcement and will be removed in the near future.

Who is online

Users browsing this forum: No registered users and 1 guest