variable help

Game Editor comments and discussion.

variable help

Postby Imperialjester » Mon Dec 13, 2010 12:32 am

ok i have a variable problem. im trying to makeone variable equal half of another variable.

like it money equals 300 then points equals 150.

please help.
User avatar
Imperialjester
 
Posts: 185
Joined: Wed Dec 08, 2010 5:39 pm
Score: 10 Give a positive score

Re: variable help

Postby skydereign » Mon Dec 13, 2010 12:37 am

I assume you have two variables, var1 and var2.
Code: Select all
var1 = var2/2;


So this sets var1 equal to half of var2.
User avatar
skydereign
 
Posts: 3510
Joined: Mon Jul 28, 2008 8:29 am
Score: 589 Give a positive score

Re: variable help

Postby Imperialjester » Mon Dec 13, 2010 1:15 am

thank you i added to your points =]
User avatar
Imperialjester
 
Posts: 185
Joined: Wed Dec 08, 2010 5:39 pm
Score: 10 Give a positive score


Return to GE - General

Who is online

Users browsing this forum: No registered users and 1 guest

cron