Position bugs near the edge on a larger box than normal
-
It also happens like this:
(The smaller red box is supposed to go on top of the zombie (bot))Can you explain why this happens?
-
@011830-0a42ef84 idk what this exact issue is, but an issue to note with doing viewport stuff is when you’re near the edge the direction stuff is gong to stay relative to teh center of the screen (even if you do offset stuff, the viewport x and viewport y blocks report semi arbitrarily relative values, put simply they put values that are randomly but consistently offset from the actual x y of the viewport, divided/multiplied relative)
-
@tyller_ Is there a way to fix this?
-
The issue might be that the current code is highly “inefficient”. It is repeatedly erasing the bar and redrawing it, even if the health has not changed. Usually, you only need to redraw it when the health has changed.