Page 1 of 1

actor creation

PostPosted: Wed Oct 17, 2007 2:41 am
by jagheera nex
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

Re: actor creation

PostPosted: Wed Oct 17, 2007 3:45 am
by DilloDude
player.g - 10;
player.r - 10;

should be player.g -= 10; to decrease and player.g += 10 to increase (same for r and b);

Re: actor creation

PostPosted: Wed Oct 17, 2007 4:22 am
by jagheera nex
ty :P