Rick Posted April 14, 2021 Posted April 14, 2021 In LE4 I'm doing the below code but it's drawing the numbers all strange. I remember this being a common thing back in the day but can't recall the solution. It's like the screen isn't getting cleared or something. I'm using the FPS template and have this in the FPSGun.lua script. function Script:PostRender(context) context:SetBlendMode(Blend.Alpha) context:DrawText(tonumber(string.format("%.3f", self.offset.x)), 10, 100) context:DrawText(tonumber(string.format("%.3f", self.offset.y)), 10, 120) context:DrawText(tonumber(string.format("%.3f", self.offset.z)), 10, 140) context:SetBlendMode(Blend.Solid) end 1 Quote
Slastraf Posted April 14, 2021 Posted April 14, 2021 The space behind the screenshot is black. Maybe there is no camera or anything to render above the "last" postrender ? Quote
Rick Posted April 14, 2021 Author Posted April 14, 2021 I'm using the FPSPlayer script which creates the camera. The FPS displays just fine, that's why it's confusing me. Quote
Slastraf Posted April 14, 2021 Posted April 14, 2021 It looks like you are drawing it twice. Maybe some other value in a different script (at the position y 100 120 140) Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.