How do you create a hud element?
-
As the title suggests, I want to know the function of a hud element in zombies that displays a counter from a variable
-
As the title suggests, I want to know the function of a hud element in zombies that displays a counter from a variable
Vulture Aid You can create it using this:
self.Text = createFontString ("Objective", 1.7); // Only client-- to Server Message use createServerFontString self.Text setPoint ("CENTER", "TOP", 300, "CENTER"); // Position self.Text setText ("Your text here"); // Message -
Vulture Aid You can create it using this:
self.Text = createFontString ("Objective", 1.7); // Only client-- to Server Message use createServerFontString self.Text setPoint ("CENTER", "TOP", 300, "CENTER"); // Position self.Text setText ("Your text here"); // MessageKalitos Can you specify the arguments for
createFontString()andsetPoint()? -
Kalitos Can you specify the arguments for
createFontString()andsetPoint()?Vulture Aid
createFontString(font, fontScale),setPoint(point, relativePoint, x, y).fonthas a few different options like"default", and"objective".fontScaleis self explanatory, it's the scale of the font lol.pointandrelativePointare a bit different though. There's"CENTER", "TOP", "BOTTOM", "LEFT", "RIGHT", "TOPRIGHT", "TOP_RIGHT", "TOPLEFT", "TOP_LEFT", "TOPCENTER", "BOTTOM RIGHT", "BOTTOM_RIGHT", "BOTTOM LEFT", "BOTTOM_LEFT".
You can kind of think of these as anchors. If I made a HUD with points"RIGHT", "RIGHT"and I appended text to it constantly, the HUD would grow to the left to maintain its position on the right.
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