Techokami/SonicWorldsNext

Bridges don't have anti-pixel perfect options

Closed this issue · 1 comments

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.

Fixed in merge request