You're reading text right now. Characters representing primarily letters and numbers, usually arranged to present a message.

learn more… | top users | synonyms

1
vote
2answers
35 views

How to dynamically create an UI text Object in Unity 5?

I have been searching for something that should be simple, but Unity 5's documentation on that is fairly outdated. What I want to achieve is to be able to create UI Text totally from script, i.e. ...
2
votes
2answers
12k views

How to add a UI Text for keeping Score in Unity 5

My Problem is simple I want to show scores on my game. The examples on internet are good but in Unity 5 there are no GUI elements but instead these are now UI elements. I was following this example: ...
1
vote
1answer
47 views

How to Programm A Dialog box with a typewriter effect in Java?

Im am very new to java and programming so I might be a bit annoying to work with but please bear with me :D So As the title says I'm trying to figure out how to properly program a working dialog box ...
0
votes
1answer
85 views

How to update UI after changing text in a view

After applying a text change to a scrolling view, how do you get the new height of the text, resize other UI elements around the changed text length, etc? Many have posted this question. Some have ...
-1
votes
0answers
17 views

Rendering text using STL in LWJGL 3

I'm working on one project and I want to render text in the window. I'm using LWJGL 3 and I found that rendering text should be done using bindings to STL. However I found these examples: ...
4
votes
1answer
108 views

Need help with making a journal system

My game uses a system similar to Metroid Prime's logbook, in that it logs things the player encounters and discovers on their journey, categorizing it, etc. I want to write out all of the possible ...
1
vote
1answer
39 views

How to set Text in C# code?

I'm trying to make a series of text appear programmatically. It's not quite showing up, and I'm struggling to understand exactly why. Any ideas? GameObject row = new GameObject("Row"); ...
0
votes
1answer
35 views

OpenGL: strange thing with depth and text rendering

TL;DR I render a scene with M,V,P matrices as always. Than I render something (in this case - text) without any matrices and using separate shaders pair on coordinates with Z = -1. Somehow it's ...
2
votes
2answers
150 views

c++ text based duel game, buggy turn mechanic

so ive checked this code 100 times for mistakes and everything checks out and should be working, I've tried everything I can think of but for some reason nothing works, this makes the movement super ...
0
votes
0answers
43 views

Can't display sf::text using custom class, crash

I have my own Text class which uses sf::Text to display text on the screen. First I couldn't get the text to display on the screen, my solution was that I forgot to give the text a font before ...
0
votes
3answers
54 views

Text independent of screen resolution in Unity? [closed]

I have the following code that depends on the resolution of the user's display: void OnGUI() { GUI.Label(new Rect(432, 525, 9000, 9000), ("Hello!")); } And of course, the location of the text ...
0
votes
2answers
62 views

Text in game with not english alphabet

I need to render some special text in my game. Currently I can render any text that use classic letters of english alphabet, but I have some problems with special alphabets. How do I render text: I ...
3
votes
3answers
85 views

How do I make dialogue text appear with a beeping effect?

I'm interested in old-school RPG dialogue boxes, where text appearing in dialogue boxes is accompanied by a subtle beeping sound. This is demonstrated in a video here. Is this morse code translated ...
-4
votes
2answers
247 views

Which font does Crossy Road use? [closed]

I took some screenshots from Crossy Road and I'm wondering what font the developers used. What font is this? I wish to implement the font in the Unity game engine.
3
votes
4answers
323 views

Optimizing Texture Text Rendering?

I have an implementation currently that stores each letter as it's own separate texture, usually only a couple pixels in width and height. So this has some problems as i am unable to do a batch ...
-1
votes
1answer
24 views

Change Andengine Text By clicking and typing a new text like native android EditText

I have a board in my game, with a name. I want to edit it on a button click (not by text.setText("text") method ) i want the user to enter a text and set it there. I couldnt find, how to change the ...
0
votes
1answer
15 views

New textblock after click on button

I have made a box where you can type in your name in unity. After typing your name you can click on the button. Clicking on the button it will copy the string that you typed in within a sentence. so ...
1
vote
2answers
57 views

Limit buttontext to one line in Unity?

I have many buttons in my game. There are different texts on them every time. But some texts are too long and get split up into two different lines. Is there any way I can fix this without resizing ...
1
vote
2answers
85 views

Unity doesn't show always the score

I don't know if this issue is in Unity or in my script, the score work well in scoreText, but in the scorePanel its show before last score like it showing 1 rather than 2; the issue doesn't always ...
0
votes
1answer
66 views

Certain Unicode Characters not displaying when setting text to TextButton in libgdx

Ok I am trying to do a word game much like Hangman Pro but for a different language(specifically amharic) using libgdx . And I have got a list of words saved to text file and I have taken care of BOM ...
0
votes
1answer
29 views

deformable and variable text on a mesh in unity

So I am working on a sports game and I want the jerseys to be customizables with names and numbers. I have the character models as a single mesh however I can't place a text on the back of the jersey ...
1
vote
0answers
41 views

What is a simple way to pull input from a keyboard and attach it to a std::string?

The question says it all to be honest. I have a game that I am making in Ogre3D, using OIS as the main input library. My issue is that I am attempting to use CEGUI (with tons of errors) all to simply ...
0
votes
1answer
39 views

Direct3D - Get screen coordinates for printing multiple text elements

I have a function that I use to print text PrintText(char* text) that stores the text to a vector, which is then displayed if the vector is not empty. I'm trying to figure out how can I correctly ...
1
vote
1answer
1k views

Creating a 3D text mesh from a 2D glyph

I have thought of three steps for doing this: Acquire the vertex coordinates which will represent the glyph's form Extrude them Render Can you suggest a better method? Can you give me an insight ...
0
votes
1answer
142 views

Small text is very light / faint with FreeType and OpenGL

I'm able to render large text with FreeType just fine: But when I want to render small text (and the only parameter that changes is the font size), the quality is much poorer: As you can see, ...
0
votes
2answers
50 views

LWJGL True Type Fonts - Calculate width and height of box

I want to center some text on the screen. At the moment I divide the display height and width by two, and then render. But I also need the height and width of the textbox, so I can subtract it from ...
3
votes
1answer
246 views

In MonoGame, how can I disable font anti-aliasing?

I am building a game with a "low resolution" aesthetic, so I would like to disable the default font anti-aliasing. The text is drawn using the built-in SpriteFont and SpriteBatch classes. Here is ...
0
votes
1answer
172 views

How can I render text using the new(ish) JOGL GPU curve rendering classes?

I'm fairly new to OpenGL/JOGL, working through various tutorials and books and making steady progress. Text, however, is an area where I'm stuck. I figured out one way using BufferedImage and ...
0
votes
1answer
89 views

In Pygame, I can only display text once I stop updating and drawing, why?

At this moment, I can only display text once I stop updating and drawing sprites. In the code below (which is actually the game loop), you can see how if GAMEOVER == True (gameloop stops drawing), the ...
0
votes
0answers
81 views

How to improve textmesh quality?

In my game I using textmesh, but textmesh has a pixel problem even adjusting scale, character size and font size. How to solve it?
1
vote
1answer
287 views

How do I go about making a text box that allows for highlight-able and copyable text in the new UI?

I'm trying to make a simple chat system for our games lobby, however I am having issues making a text box that allows for text-highlighting. The Text component does not have interactible text, and the ...
1
vote
0answers
231 views

How do I manually submit a new UI InputField in code?

I need some conditions for submitting the text inside of an Inputfield, however I cannot find a way to do this via code. I was expecting something simple like with WPF or WinForms, but I cannot find ...
1
vote
1answer
103 views

Text rendering techniques for games

I'm researching text rendering techniques for 3D applications, and I'm having a hard time finding information on the topic. Do you know of any other methods of text rendering that are actually used in ...
1
vote
2answers
113 views

Directx displaying selectable text

I am new to direct x and following this tutorial : brayzarsoft (part 14) I was able to display text. However, using this method the text is rendered to a texture. When you look at games that have ...
0
votes
1answer
86 views

What is the highest quality way to render warped text on Windows?

I need to render highly readable text, on par with DirectWrite+Cleartype+Truetype. The Cleartype system uses sub-pixel anti-aliasing. DirectWrite takes things a step further and moves letters around ...
1
vote
2answers
293 views

Hot to make a function in Haxe that reads content from text file and does something with each line?

How can I make a function in Haxe that reads a line from a text file, prints it/saves it to a variable, and then goes to the next line? My objective is to make the dialogues on a text file, having ...
0
votes
0answers
178 views

Insert 3d text to the front face of a cube GameObject

I want to add a text to a cube in Unity. I have a cube which has a 3d text as a child. I am using the below javascript to write on the 3d text: #pragma strict function Start () { } var countdown : ...
0
votes
1answer
364 views

Can I display text in SFML without setting a font?

I'm trying to render text without setting a font. #include <SFML/Graphics.hpp> #include <iostream> using namespace std; string culoare; int main() { sf::RenderWindow ...
1
vote
1answer
195 views

Unity import text or json

Can't seem to find a definitive way to import text to C# in Unity3d. I'm looking to import either a lot of different text files or one large json file to represent all the text in the game. Thanks ...
5
votes
4answers
528 views

How can I implement a real-time game loop in a text-based game?

I am trying to make a short text game with c++ to help me learn the language. I have made a version that basically displays texts, waits for an input, once the input is received it displays text, and ...
0
votes
2answers
388 views

Better ways to parse text adventure commands? [duplicate]

Currently I have got a system set up where I split each sentence handed to me into it's baser parts and then compare each word against a list of known words. Once I have the verbs, adjectives and ...
0
votes
1answer
79 views

Arbitrary text for chat room

In my game I want to have a chat room where users can enter arbitrary text. I don't think bitmapped fonts will work for me since it must include multilingual characters and emojis (could be wrong ...
0
votes
1answer
167 views

OpenGL 4.4 LWJGL - How can i render text to the screen

I have been told that you need to create a texture atlas for the font, and individually assign each character to a texture and add them up to create the string you want to produce. This seems a little ...
0
votes
1answer
509 views

Typing text animation (dialogue) libGDX or in general

Can anyone think of an efficient way to animate the typing dialogue text as found in pokemon? I have a vague idea of using string.length, and having a new letter drawn every .2 seconds or so, but ...
1
vote
0answers
84 views

import text strings into Unity editor 3D text objects so that Scene View displays them

I am having trouble finding a solution to this problem. I want to generate the text for TextMesh.text in a custom application and import into the Unity editor so that I can then scale the text to ...
0
votes
1answer
434 views

How to color each letter text in Phaser.js?

I have a text created with text object (game.add.text) and I would like to color each letter differently if that is possible. If not, how can I achieve this?
1
vote
1answer
118 views

How do I draw text once a countdown ends?

I created a countdown in Game Maker using a variable of time. The countdown works properly and is displayed at the proper coordinates. However, when the countdown reaches zero, I want to make the ...
-1
votes
1answer
289 views

Using multiple strings within the path to Write to Text File [closed]

In Unity3D, How would I use something like this: path = "C:\Users\Jonathan\Documents\FileData" + fileName + ".txt"; so I can make a for loop and create several text files under desired path? The loop ...
-1
votes
1answer
893 views

LWJGL font not rendering, even with depth test and texture_2D

I'm running into an odd little problem here. I'm attempting to render a basic console over my LWJGL-based application, which should be easy enough through a decorator pattern of renderers (as in, one ...
8
votes
2answers
1k views

How do games handle rendering Asian unicode text?

I'm currently in the process of implementing text rendering in my game engine, and I decided to utilize AngelCode's BMfont to generate font textures, and then have OpenGL render textured quads for ...