changing the ambient light in real time?

I m trying to implement a way to change in real time the ambient light on blender, but i can t create ipos with that witch work with the game engine, i want to make a hue saturation kind of panel to give the user an option to change the ambient light.
someone knows how can i make it, or have an example, i m starting to learn python for the 10th time i hope that now i finish the course.
I ll be very happy with any help

By ambient lighting, do you mean the general lighting of the scene?
If so, there’s a list of light variables here, such as color and brightness
Simply replace the float values with properties, so you can dynamically control them…

Here’s an example; it changes the red-ness and brightness of the light:

Attachments

example9.blend (128 KB)

thanks impact, but i still lost, i just know the very basics, im learing little by little sorry because of my “dumness” but can you example it on a simple blend file?
if you dont i understand thanks anyway.

The following threads might be related to your question :
BGE 2.5 : Python Requests and required fixes
[Need fix] World Data Block : several issues with setMist, AmbColor, Bgcolor
No solution given, though.

Ok, thanks, ill try to find another way.