[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.
-
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.
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
-
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?
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login