Speak...Very...Sloooowwwllyyyyy...

Talk about making games.

Speak...Very...Sloooowwwllyyyyy...

Postby Hedfone » Wed Aug 30, 2006 4:53 pm

Can someone provide a step-by-step 'how to' for making a variable?
(just pretend like you're talking to a 3year old)
User avatar
Hedfone
 
Posts: 174
Joined: Mon Jul 31, 2006 9:47 pm
Score: 2 Give a positive score

Postby Novice » Wed Aug 30, 2006 5:28 pm

1. Open GE :wink:
2. Open the Global code window (click on the script button near the add actor button)
3. In the global code editor just above the close button is a variable button.
4. Click it
5. In the new window click Add
6. In the new window enter the name you would like your variable to have
7. Set it's type to whatever you need (if you don't understand the types there is an explenation somewhere on the forum).
8. Click Add and you have a new variable.
Why do i always get stuck?
User avatar
Novice
 
Posts: 399
Joined: Mon Aug 29, 2005 10:54 am
Location: Relative
Score: 5 Give a positive score

Postby HillBilly » Wed Aug 30, 2006 6:55 pm

Then you just need to set the value of the variable, in a script, view is a good one.

variablename=10;

or what ever value you want.

Just started messing with these 2 days ago myself. :)
HillBilly
 
Posts: 68
Joined: Thu Jun 08, 2006 4:31 am
Location: OHIO, USA
Score: 4 Give a positive score


Return to Game Development

Who is online

Users browsing this forum: No registered users and 1 guest