What is textNumber

Game Editor comments and discussion.

What is textNumber

Postby Clokio » Mon Jun 20, 2011 3:40 am

textNumber :mrgreen:
Clokio
 
Posts: 229
Joined: Tue May 17, 2011 2:18 pm
Score: 32 Give a positive score

Re: What is textNumber

Postby NightOfHorror » Mon Jun 20, 2011 5:15 am

edit: Sky has a better answer by a lot.
Last edited by NightOfHorror on Mon Jun 20, 2011 3:38 pm, edited 1 time in total.
viewtopic.php?f=2&t=12136
"I have not failed. I just found 10,000 ways that wont work." quoted by Thomas Edison.
Over the year, I decided my motto for me is I am knowledgeable, but not practical.
User avatar
NightOfHorror
 
Posts: 1823
Joined: Fri Aug 27, 2010 2:50 am
Location: Cedar Hill, MO, of the USA
Score: 51 Give a positive score

Re: What is textNumber

Postby skydereign » Mon Jun 20, 2011 7:49 am

textNumber is an actor variable (so each actor has its own). They are only used/useful with text actors. You can treat the textNumber itself as a double. If the actor does not have any text, setting the textNumber will display the variable. It is generally a good idea not to treat the textNumber as a variable, but purely as a display technique. That is to say, don't do this.
Code: Select all
actor.textNumber+=5;

Instead make a variable such as score and do this.
Code: Select all
score+=5;

text_actor -> Draw Actor -> Script Editor
Code: Select all
textNumber=score;


gameEditor has some problems with handling textNumber and it is just safer to use it like that.
User avatar
skydereign
 
Posts: 3510
Joined: Mon Jul 28, 2008 8:29 am
Score: 589 Give a positive score


Return to GE - General

Who is online

Users browsing this forum: No registered users and 1 guest