How to add global Actor Variable in script ?

Non-platform specific questions.

How to add global Actor Variable in script ?

Postby feral » Sat Jul 12, 2008 12:54 am

How do i add a global Actor variable using a script - not the variables dialogue box.. if possible
ie: not a "global variable" ,but one that creates individual copy of the variable for every Actor

thanks
feral
User avatar
feral
 
Posts: 308
Joined: Sun Mar 16, 2008 6:27 am
Score: 47 Give a positive score

Re: How to add global Actor Variable in script ?

Postby makslane » Sat Jul 12, 2008 1:03 pm

You can create Actor variables only in the Variables panel!
Game Editor is an open source game creator software that's wants to pay it's developers to keep evolving.
If you like Game Editor, make a review!
makslane
Site Admin
 
Posts: 3947
Joined: Sat Apr 05, 2003 6:47 pm
Score: 182 Give a positive score

Re: How to add global Actor Variable in script ?

Postby Thanx » Mon Jul 14, 2008 10:47 pm

So that means, that if in a Script editor for like a collision event, if I declare a variable in code like
int i;
then that's created from then on till the end of the game globally? Or how does that work?
http://www.youtube.com/watch?v=XyXexDJBv58
http://www.youtube.com/watch?v=Be4__gww1xQ
These are me and playing the piano (second one with a friend/fellow student)
Hope you watch and enjoy!
User avatar
Thanx
 
Posts: 314
Joined: Sat Jan 26, 2008 10:07 pm
Location: Home sweet home! :)
Score: 24 Give a positive score


Return to General

Who is online

Users browsing this forum: No registered users and 1 guest

cron