-click on the Add actor button in the top menu. now name it in the box that comes up and click OK.
-if you don't have the Actor Control window open then right click on your actor and then click Actor Control
-in the Actor Control menu click on "Text". in the Set Text menu window enter a bunch of zeros (0000000).
-now click on the New Font button and then on the True Type button.
-now brows to a .ttf file, then set the color to something other then your back ground and set the size. now click OK and then OK in the Set Text menu.
-your packmanish figure is now a bunch of zeros
-in the actor control menu click on Add, then click on the Key Down option. now enter a key you want to use for the activation of this event. I chose the space bar.
-now click Add Action, and select Script Editor from the drop down menu.
copy and paste this
- Code: Select all
//makes an integer variable called i and then makes it equal 20.
int i;
i=20;
textNumber=i;
//sets the zeros to equal i;
//if you want to set this actor's text from another
//actor then you would type actorname.textNumber=i;
-now click on Ok and then on Imediate action
-now at the top click on Game Mode and press your activation key(space bar) to make the text equal 20.