How to Make Moving Text in Steam Games
The gaming platform Steam allows users to upload games they have created. Users can upload games in many formats, so there is no one way to add scrolling text to a Steam game. However, if you create a game in the popular game programs Flash or Java, you can easily add scrolling text. Uploading Steam games requires a Steam account. Steam users can sell their games and split the profits with Steam.
Instructions
-
Flash
-
1
Double-click on the icon of Flash to open it.
-
2
Click on the "File" program and select "Open." Highlight your game and press "Open."
-
-
3
Navigate to the Timeline and click on the Keyframe that contains your text. Highlight the text. Click on the "Text" tool and select the "Text Box" tool.
-
4
Click on the "Windows" menu and select "Panels" then "Text Options." Choose "Dynamic Text" in the first drop-down menu, "Multiline" in the second drop-down menu, and "da TextBox" in the third drop-down menu. Click on the box next to "HTML" so that it displays a check mark.
-
5
Locate the ActionScript code that reads "daText Box=." Enter the following code after the "}."
onClipEvent (enterFrame)
{
if( scrolling == "up")
{
daTextBox.scroll--;
}
if
( scrolling == "down")
{
daTextBox.scroll++;
}
-
6
Save your file. Render by pressing "Ctrl" and "R." Export your game by selecting "File" then "Export."
-
7
Upload your game to Steam.
Java
-
8
Open your Java compiler and your Java game file. Locate the area of the code where you wish to add the text.
-
9
Create a set of private integers that outline the frame.
public class Game_scroll{
private JFrame frame;
private JTextArea textarea;
private JScrollPane textscroll;
-
10
Write the code that defines the text scrolling.
public game_scroll ()
{
frame = new JFrame("TEXT:);
ContentPane().setLayout(new FlowLayout());
textarea = new JTextArea("", 1, 10);
textarea.setLineWrap(true);
textscroll = new JScrollPane(ta);
textscroll.setVerticalScrollBar
(JScrollPane.Vertical_Scrollbar_Always);
}
-
11
Save the code and export it.
-
12
Upload the game to Steam.
-
1
References
Resources
- Photo Credit Jupiterimages/Brand X Pictures/Getty Images