Color siders? Post seven


My first question has probably beeen answered somewhere, but I coudnt find it. How would you make a menu, and then acctually keep the options throughout the game? Like what character a player chooses, clothes, weapons etc.

And also, is there a way to make color sliders to control the color of an object? This would be in the menu, and then keep the color through the game.


If everything is on the same scene the you could do something like this.(See attached file.)
If not then you will have to use python programming. Here is a post about how to learn Python programming for the BGE.
For the color slider you will need to use python. I am just starting to learn python myself so I can’t help you there.
Good luck!:slight_smile:


Menu demo.blend (359 KB)

Ok cool. That is a very simple menu, but it does work. I would just like to be able to have an options button a start game button and a quit button, if someone could maybe help me with that?

Here is a bowling game I am working on. It has a simple pause menu that uses scenes. (And a mouse without the use of scripting.) You should be able to apply the basic concepts to any kind of menu you may need. Just pay attention to the logic associated with the cameras on each scene, and also the planes behind the resume and quit buttons.
If you need more info I will be happy to send you a video tutorial.


Bowling Lane1-d.blend (707 KB)

Ok cool. That should work pretty good. I take a look at it. Thanks.
Now I just need to figure out the color sliders.

You should look atDice War.

Yeah. Thats exactly what I want. But it’s a little complicated to try to pick apart.

I think I can do the menu now, but the color sliders are going to be tricky.

If I could get the value from the user, then I think I could do it.
I’m just not sure how to do that.

Also, is there a way to change the material color with python?

Edit: Nevermind. I tried to set the color, but I’m not sure how you would change a whole objects color instead of a vertex.

Edit 2: Is there a way to access separate channels of an IPO curve? So then I could make a red green and blue one, and set the value of each curve separately.

This here was going to be my next question here in the BA Forums! I too would like to know how to do this in the game engine. (Hope it’s already okay to go past seven on here if not I’m terribly sorry)