[Support] On-Screen Information Movement. GSC Code
-
Ive got this simple zombies counter that i found on here, and it works great, my only question, is it possible to move it to where i drew the pink box at in the attached picture?
// Zombies Counter drawZombiesCounter(){ level.zombiesCountDisplay = createServerFontString("hudsmall" , 1.5); level.zombiesCountDisplay setPoint("CENTER", "CENTER", "CENTER", 200); thread updateZombiesCounter(); }
This is what I have, I just dont know which of those four are the x and y axis.
-
The first two parameters for setPoint are anchors, the next one are x and y coordinates to change the position.
-
MrMcyeet If you want a good idea on the possible inputs of the function look at it here: https://github.com/JezuzLizard/Recompilable-gscs-for-BO2-zombies-and-multiplayer/blob/master/patch_mp/maps/mp/gametypes/_hud_util.gsc. To add on to what xerxes said negative x is to the left, and positive x is to the right of the point you set, while negative y is up, and positive y is down.
I recommend trying
setPoint("BOTTOM_RIGHT", "BOTTOM_RIGHT", "CENTER", 175);
. -
Thank you two so much!
I read over that github link that was linked, and it helped me get a better idea of my left from my right xD
Anyway, what i ended up using is("CENTER", "CENTER", 320, 165)
and it works for what i wanted it for.
The only thing is that whenever someone switches their weapon, the weapons name is in the same place as the z counter, so its hard to read, but all in all, i like it!
Thx again you two -
MrMcyeet said in [Support] On-Screen Information Movement. GSC Code:
The only thing is that whenever someone switches their weapon, the weapons name is in the same place as the z counter, so its hard to read, but all in all, i like it!
You could wait for the weapon switch event and then change the alpha value to hide it for a few seconds.
-
Hello, an apology for the inconvenience. Do you think you can upload your already compiled zombie counter?