I have hit some kind of bug when trying to run my game. I have successfully created animations to change the positioning of a light switch to show it is changed, as well as an animation that changes a light from 0 energy without diffuse to a light with x energy and diffuse enabled.
I have set up the switch with a near sensor and keyboard sensor, then connected through an and controller each of my lights and switches in the are are connected via action actuators. The action actuators are in pingpong mode to allow users to turn lights on and off continually, they all also run from start: 1 and end: 2 as all animations are done from change of state in frame one to frame 2.
Now here is where the bug is happening. The above process 100% works at first, then if I close blender and reopen it or do some changes in the file, the light animation no longer really works. In run time all of the switches still animate, and the very first light system I created has the lights turn on, but no other lights turn on.
Inspection of this shows that the frame 2 of the animation for all of the other lights has the correct values, energy = x and diffuse = on, however it is not displayed as if it is. I notice though, if I click the diffuse off then on again or I change the value of the energy from x to y back to x, that the animation works correctly until I start making changes elsewhere or close/reopen the file. I also notice that duplicating the frames in the dope sheet, or messing with them in anyway in the dope sheet yields the same temporary working result.
Does anybody have any idea what is causing this/how to fix this? It has to be some kind of bug I think.