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 » Fri Oct 12, 2018 1:04 pm

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 12 times

User avatar
pgimeno
Party member
Posts: 1263
Joined: Sun Oct 18, 2015 2:58 pm

Re: Smooth downward slope movement

Post by pgimeno » Fri Oct 12, 2018 1:33 pm

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
The Microsoft Github repositories I had have been closed after the acquisition announcement and will be removed in the near future.

Post Reply

Who is online

Users browsing this forum: No registered users and 11 guests