Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange
Make your voice heard. Take the 2019 Developer Survey now

Questions tagged [text]

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

1
vote
0answers
13 views

Incorrect placement of diacritics in Arabic fonts

I put AdobeNaskh font on my texts and use Arabic text support for unity and use show Tashkeel function then the text appears so what is the solution of this problem?
0
votes
1answer
14 views

Rewriting a text object [duplicate]

I'm trying to set up a UI system. Say I have a text object 'text' which is visible onscreen. I want to change it with a button press using a script such that the text box's previous string is replaced ...
0
votes
0answers
26 views

Adding drop shadow to text in Minecraft

I would like to know how to take a text object rendered using the default Minecraft font renderer and add a drop shadow behind it. I believe what I need to do is make a copy of the text object, ...
1
vote
2answers
41 views

Godot: What options are there for removing the filtering or anti-aliasing from text

If I were to start making a pixel-art game with the Godot engine, what options do I have for removing the filtering or anti-aliasing from text? EDIT: I want to know how to remove the AA from ...
-1
votes
1answer
36 views

How to Destroy Text after certain Time

So, I have this 2D game built. In it, a text pop ups in the beginning but I want that text to stop appearing after certain seconds. (Using Unity)This text is also attached to a panel
0
votes
1answer
45 views

Remove hidden values within string

I tried removing the Unicode Whitespaces in the string using words[len].Trim() but still there's still an extra character. Every letter represents the coordinate ...
0
votes
0answers
11 views

IllegalStateException while rendering font via slick-util TrueTypeFont

I tried to load a font via Font awtFont = new Font("Times New Roman", Font.BOLD, 24); TrueTypeFont font = new TrueTypeFont(awtFont, true); and then call ...
0
votes
1answer
66 views

How can I implement a scrolling text ticker?

How can I implement a right-to-left scrolling text ticker in libGDX (like stock tickers)?
0
votes
1answer
34 views

Do I have to re-assign localized text every time the game loads?

I am trying to build a localization system for games. And I have stumbled upon a problem where in Unity you basically have to change all the text in Text components ...
0
votes
1answer
46 views

First “If” Enemy Selection Function being recognized as a syntax error in Python

I have an issue with trying to under the syntax error with the line if enemy_select = 1: in this type of code: ...
1
vote
2answers
97 views

c++ text rpg loading rooms/mobs

So for practice and as a learning exercise i foolishly decided to make a text based rpg on my phone using the c4droid ide. ive done well and have learned a lot. So far you can create a new character ...
0
votes
1answer
64 views

Inspector does not appear to match actual value

A text object is where the inspector says, but not where I expected it, and not where Debug.Logerror says it is. What I read as my "strengthTextObj.transform.position.x" is -213 in the inspector but ...
0
votes
1answer
15 views

How to render text on an 3d Object?

I want to render text on an 3d object. I'm trying to simulate a digital signage LED panel. My lcd Panel has a material and a texture. How can I do ? Using 3d Text ? Thanks
1
vote
1answer
116 views

ds_map_find_value returning number instead of array

Currently messing around on how to make a text engine in GameMaker and figured I would hold all my conversations in JSON format stored in a .txt file, which I'll convert into a ds_map and draw the ...
1
vote
2answers
103 views

Trouble creating a “Game Log” for a text-based RPG

I've made significant progress porting my game from print-output to Pygame over the last few days, and I think I'm almost there! Unfortunately, I'm beginning to suspect one of the methods I'm using ...
0
votes
1answer
72 views

How do I port a game which uses print-output to pygame font rendering with the least amount of work?

I've been working on a text based RPG. It's pretty simple, I'm not very experienced with Python, or any other language for that matter. Edit: For context, I recently posted this question: Python 3: ...
1
vote
0answers
31 views

TextMeshPro Shader choices difference (when to use)

Actually I can see the visual difference that bitmap/sprite shows blurry text like this: pink distance field seems like ...
1
vote
2answers
148 views

Monogame - SpriteBatch.DrawString() won't work

Here is my Game1.Draw() method (Constants.HeroLayerDepth is equal to 1): ...
2
votes
2answers
124 views

How to draw a string to the screen by fading in one letter at a time?

I'm making a text adventure-style game with MonoGame. I have created a TextBox class which prints text onto the screen one letter at a time (like it's being typed). It does this by storing received ...
0
votes
0answers
24 views

c# putting tags selection start-end reasonable

In Unity UI InputField, I can fetch the start point of selection of the text input and end point. And since InputField supports Rich Text Format, we can add bold (< b >) tags to start and end ...
0
votes
1answer
39 views

BitmapFont draw nothing on some devices

I use libgdx and I draw some text with BitmapFont, it works, but on some devices with Android 5.1 game draw only numbers and punctuation symbols, without any text. I tried two ways: 1) Font ...
0
votes
1answer
105 views

Reading a text file and changing each digit into a value inside an array c#

I'm having a bit of an ordeal with the StreamReader. I'm working on a game where you build the map with a 2D array by imputing different numbers so the array like this: ...
1
vote
1answer
258 views

How to use SDL_RWops and SDL_RWseek to read text files, line by line?

I'm right now looking for alternative ways to read text files on a line-by-line basis, for cross-platform compatibility (Windows / Linux). My current solution is to go look for (or seek out) the ...
1
vote
1answer
147 views

How to get the position of individual characters in TextMeshPro (Unity)?

I am making a typing game. There are words falling down what the user have to type, before they can call the OnBecameInvisible() event. When the user types a character I want to apply a force and a ...
1
vote
1answer
120 views

How to make a string[] from the words of a file in Unity?

I have .txt file containing all the English words separated by line breaks. I want to turn them to a string[] so I can easily pick a random one from them. The way I would do that in normal C# is ...
1
vote
0answers
257 views

Find Max Line Count for Unity UI.Text

I'm trying to determine the max line count of a UI.Text with VerticalOverflow set to truncate...
0
votes
0answers
55 views

Make Unity Text Area to act like a logger

I'm trying to create a text area in Unity using UI.Text that contains multi-line text which should act like a log view, i.e the text area ...
2
votes
1answer
61 views

Why am I hitting a small character limit when rendering with SDL_TTF?

I'm making a text based game using SDL2 and SDL_TTF. I just started working with TTF, and I've noticed there is some kind of character limit regarding how much text you can render at a time! I can ...
0
votes
3answers
65 views

How to delete a score after collecting all collectibles

I'm making a small game for my English class, and in the beginning, you have to collect rocks. I already have the code for counting how many rocks have been picked up, and the GUI to display while the ...
1
vote
0answers
36 views

XNA Displaying/Drawing from a text file [closed]

I wrote this code in the Load Content of XNA 4.0 for reading the star map, after actually adding it to my content, and I have no idea how to write/draw it onto my application, any suggestions? ...
0
votes
2answers
43 views

Tag object in map in Unreal

Is there a clean way in unreal to place text in the map to tag different buildings and areas for developper that can easily be turned on/off for all the tags in the map?
0
votes
1answer
113 views

C++ Freetype advance X problem

I'm currently working on a font-rendering system for my OpenGL based engine. I sure got something to work, but the only thing I still have problems with, is the horizontal advance! This is what it ...
1
vote
2answers
84 views

Making quick time events in my text adventure more noticable

I'm making a post-apocalyptic text adventure in Unity. One of the gameplay features I've added is a quick time events on certain parts. Whether a part is a quick time event is defined inside the story ...
-2
votes
1answer
99 views

Problem using SDL_TTF

I'm trying to create a 2D game, and I'm trying to use a layered drawing model. First I draw the background, then the world, then the constructs (buildings etc.), then the objects (NPC's etc.) and ...
3
votes
1answer
69 views

View individual UI Rect boxes when multiple UI elements are selected?

I have 2D UI layout with multiple text boxes over the canvas, I need to easily be able to see where the Rect boxes for each are positioned, so that I can see where the safe areas are for placing ...
1
vote
1answer
175 views

Is it possible to make an input field with non selectable text in Unity?

Can I make an input field with non selectable text in Unity?
0
votes
3answers
170 views

Alternative to canvases (unity)?

I have a Unity project which requires a bunch of Canvases and, surprise surprise, they're creating a lot of lag. I've already turned off the graphics raycaster for every single one, but they still ...
0
votes
1answer
288 views

Unity text component not updating text properly

It was worked fine previously, but after some point, it's not working. This is the code. It's not a pseudo code, actual code in game: ...
0
votes
1answer
1k views

How to align text dynamically inside a rectangle with Phaser JS

I am just starting to learn the Phaser JS framework with my first game. I did not managed to find a way how i can align text inside a rectangle element dynamically without specific coordinates. Here ...
0
votes
1answer
149 views

Unity 2d text not rendered properly in scene mode

I am a beginner in Unity and trying to add a text box to my scene. I have done this before and was able to do it properly. Problem But recently I created a new project, added a text element to it, ...
3
votes
1answer
1k views

MonoGame “couldn't find a default importer” for .txt file?

I'm trying a solution in MonoGame to create levels from a .txt file, but the pipeline tool fails when trying to build the Content.mgcb correctly: ❌ Skipping HighResolutionContent\Backgrounds\...
0
votes
1answer
91 views

Problems with the Unity text field

Let say I have this list and currently there are three animals inside the list. These names below are displayed on the text field in the scene. Cat Bird Goat If there is a new animal is added to ...
1
vote
1answer
184 views

How to procedurally generate materials with text in Unity

I'm designing a virtual library that dynamically loads sections of a database and need to display text on the books. As such, I need a runtime interface to somehow load book titles and author and put ...
1
vote
1answer
104 views

Why would I receive a NullReferenceException when the object is clearly set, and still works?

I am getting the exception "NullReferenceException: Object reference not set to an instance of an object" while changing text of a user interface text field, even though the text changes successfully, ...
2
votes
2answers
1k views

What is the most efficient way to render a textbox in C++ SDL2?

I'm a beginner in sdl2 and I'm trying to make a window, with a gui (where you can move a sprite around) and a CLI (a textbox where the game can return some text and the user can insert commands). Let'...
1
vote
1answer
554 views

Unity 5 - Manually zooming/scaling in and out of an image with a text layer while still retaining text sharpness when zoomed?

I have a section in my scene where I have an image on a layer, as a child of this layer I have a load of text objects. I need the ability to zoom in and out of the image (it's a technical drawing, so ...
1
vote
2answers
238 views

Unity: Change Text with Time (Text Flashes)

I am trying to display instructions within the Unity game. The idea is to have the instructions appear over time. For example, "instruction 1" then wait 5 seconds and show "instruction 2" instead of ...
0
votes
1answer
104 views

How to make a text box where text “types” smoothly

I want to create a textbox that behaves like most textboxes seen in other games where the text appears gradually. So far this has been my attempt at it but unfortunately, the text appears very ...
0
votes
0answers
32 views

How do I get the String output from a InputField to be equal to a word?

Here is the Code. The if Statement down below doesn't work, why ? public class TextInputScript : MonoBehaviour { ...
0
votes
2answers
125 views

Retrieving text from a text file and inputting it to a Text component

I had a suspicion I would come across this problem. I know how to write to the file and read from it, but the following snippet isn't allowing me to input it into a text component. ...