The latest version of the capx is linked into the original post of this thread. I will also add it again here:
dl.dropboxusercontent.com/u/17261636/SkiInstructor.capx
There are three controls - left, down and right. Left and right substract or add 35 degrees to the skier's bullet angle, down sets the angle to 90 degrees.
The skier starts at a 90 degree angle, going straight down.
Press right from the starting position and you have two possible positions: 55 or 20 degrees (then the skier is blocked)
Press left from the starting position and you have two possible positions: 125 or 160 degrees (then the skier is blocked)
Now I want a new mechanic - when the angle is 90 degrees, I want the bullet acceleration to be set to 10 so the speed will gradually increase. This works but only partially:
-on layout start --> OK
-if I move the skier left or right acceleration goes to 0 --> OK
-if I press down and the angle is set to 90 degrees acceleration goes to 10 --> OK
-if I am at 55 or 20 degrees (so sliding right) and press left until I get to 90 degrees the acceleration goes from 0 to 10 --> OK, but not always - if, for example, I was sliding left at 125 degrees and press right twice (so the angle is 90 - 55) then move left once (so the angle is 90 then the acceleration no longer goes to 10 (or it does but only sometimes)
-if I am at 160 125 degrees (so sliding left) and press right until I get to 90 degrees the acceleration stays at 0 --> NOK, I wanted the acceleration to always go up
I am not sure what I am doing wrong here or why it's acting like this, it makes no sense...