actor creation

Game Editor comments and discussion.

actor creation

Postby jagheera nex » Wed Oct 17, 2007 2:41 am

in my super hightech game im making when you furst start a window opens and you can do things like costimize the color and make his name, but i get stuck on the color part, i have 2 bottons(plus and negitive) for 3 colors, red, blue,yellow. i tryed to make it so were u click on the plus botton for the red and it adds a little red to the charicter same 4 blue and yellow, but it doesn't work! here is my crappy code for making the actor a little blue;

Code: Select all
player.g - 10;
player.r - 10;


the "player" is the main actor and on the main actor in the creat actor there is this code;

Code: Select all
g = 255;
b = 255;
r = 255;


plz someone help :P
User avatar
jagheera nex
 
Posts: 46
Joined: Sat Jul 28, 2007 4:13 pm
Location: dik
Score: 1 Give a positive score

Re: actor creation

Postby DilloDude » Wed Oct 17, 2007 3:45 am

player.g - 10;
player.r - 10;

should be player.g -= 10; to decrease and player.g += 10 to increase (same for r and b);
Image
User avatar
DilloDude
 
Posts: 866
Joined: Tue Jan 24, 2006 9:51 am
Location: Nyerellion
Score: 58 Give a positive score

Re: actor creation

Postby jagheera nex » Wed Oct 17, 2007 4:22 am

ty :P
User avatar
jagheera nex
 
Posts: 46
Joined: Sat Jul 28, 2007 4:13 pm
Location: dik
Score: 1 Give a positive score


Return to GE - General

Who is online

Users browsing this forum: No registered users and 1 guest

cron