Techokami / SonicWorldsNext

Official development repository for the successor to Sonic Worlds Delta
MIT License
139 stars 29 forks source link

Bridges don't have anti-pixel perfect options #119

Closed NeonSRB2 closed 5 months ago

NeonSRB2 commented 11 months ago

Usually the framework likes to do things like add a comment for if you're not a pixel perfect game, like this

    # Camera lock
    # remove round() if you are not making a pixel perfect game
    var getPos = (global_position+Vector2(0,camLookOff)+camAdjust)

Bridges mysteriously don't have this, despite their target being pixel-aligned, which looks wierd. I "fixed" this on 3.5 by removing the floor() like this on line 90: (with smoothDrop = true)

bridges[i].position.y = lerp(bridges[i].position.y,(maxDepression * sin(90 * deg2rad(logDistance))),delta*10)

This is still present in 4.0 branch, the script was unmodified aside from porting.

NeonSRB2 commented 5 months ago

Fixed in merge request