what do int,while,char,actor, and FILE do?

Game Editor comments and discussion.

what do int,while,char,actor, and FILE do?

Postby DarkParadox » Thu Jan 03, 2008 12:26 am

what do these do?:
int
while
char
actor
File
User avatar
DarkParadox
 
Posts: 457
Joined: Mon Jan 08, 2007 11:32 pm
Location: USA, Florida.
Score: 84 Give a positive score

Re: what do int,while,char,actor, and FILE do?

Postby Freddy » Thu Jan 03, 2008 1:13 am

int stands for integer (a whole number posotive or negative) Its used for declaring variables with integers. (int d; d = 6;)
while I believe is used for loops for example:
while(blablabla)
{
blablabla
}
or something along those lines
char is short for character (a number or a letter or a symbol) again this is used for declaring variables, except with characters
an actor is a character in your game
and FILE...I have no idea :(
Anyway, I hope that helps a littl bit :D
Hola
User avatar
Freddy
 
Posts: 548
Joined: Sat Jun 02, 2007 3:42 pm
Location: Why do you want to know?
Score: 14 Give a positive score

Re: what do int,while,char,actor, and FILE do?

Postby DarkParadox » Thu Jan 03, 2008 1:29 am

no not that actor the one when you type "Actor" and it turns bright green
also FILE turns bright green when you type it too.
User avatar
DarkParadox
 
Posts: 457
Joined: Mon Jan 08, 2007 11:32 pm
Location: USA, Florida.
Score: 84 Give a positive score

Re: what do int,while,char,actor, and FILE do?

Postby Freddy » Thu Jan 03, 2008 1:37 am

Yeah I noticed the green, when I was expirimenting with the terms in the script editor, but I didnt get anywhere.
Hola
User avatar
Freddy
 
Posts: 548
Joined: Sat Jun 02, 2007 3:42 pm
Location: Why do you want to know?
Score: 14 Give a positive score

Re: what do int,while,char,actor, and FILE do?

Postby Fuzzy » Thu Jan 03, 2008 3:02 am

Actor and FILE are pointers, special variables that can point to other variables.. or groups of them.
Mortal Enemy of IF....THEN(and Inspector Gadget)

Still ThreeFingerPete to tekdino
User avatar
Fuzzy
 
Posts: 1068
Joined: Thu Mar 03, 2005 9:32 am
Location: Plymostic Programmer
Score: 95 Give a positive score

Re: what do int,while,char,actor, and FILE do?

Postby Game A Gogo » Thu Jan 03, 2008 3:09 am

I'm not sure what Actor does, but FILE is for storing file information to be saved/read for later usage, that way you can make external media and read external media
Programming games is an art,
    Respect it.
User avatar
Game A Gogo
 
Posts: 3466
Joined: Wed Jun 29, 2005 10:49 pm
Location: French Canada *laughs*
Score: 181 Give a positive score

Re: what do int,while,char,actor, and FILE do?

Postby yttermayn » Mon Jan 21, 2008 10:02 pm

Fuzzy wrote:Actor and FILE are pointers, special variables that can point to other variables.. or groups of them.


Any examples of their use? Especially the Actor pointer...
yttermayn
 
Posts: 48
Joined: Sun Nov 25, 2007 4:10 pm
Score: 2 Give a positive score

Re: what do int,while,char,actor, and FILE do?

Postby DarkParadox » Tue Jan 22, 2008 8:40 pm

yttermayn, i have figured out the true purpose of Actor,
this is one: you can use them in the global code to while
creating a custom function, Example(part of morcior's typing code):

void txtClear(Actor *ent) { sprintf(ent->text, " "); }

i can't really expain anything but Actor in this code, if you use this in normal script editor in the actor area you will type: &theActor, by typing that you are designating the actor this code will effect.
User avatar
DarkParadox
 
Posts: 457
Joined: Mon Jan 08, 2007 11:32 pm
Location: USA, Florida.
Score: 84 Give a positive score


Return to GE - General

Who is online

Users browsing this forum: No registered users and 1 guest

cron