Chopper Posted April 18, 2014 Share Posted April 18, 2014 Hi everyone, what i want to do is, for example, have some kind of a text, lets say this text is "test". I want to draw this text on the screen with dxDrawText, for example, 18 times, but in a different y position. i tried a simple for loop, and added +10 to the y everytime the loop started, but all the text that was previously drawn out in this loop got that y position too. Any solutions? [need it for a scoreboard.] Link to comment
.:HyPeX:. Posted April 18, 2014 Share Posted April 18, 2014 local x,y = guiGetScreenSize() for i=1, 18 do dxDrawText("TEXT: ".. i, x*0.2, 0 - y*0.03 + (y*0.05 * i),x,y,tocolor(255,255,255,255)) end Good luck PD: the 0-y*0.03 was to make the texts start from 0.02 Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now