What's wrong with this code?
limes336
Member Posts: 10
My code is not working, and I have isolated the problem. It seems that this rule is not working: [if (self.rotation) > 0] I wondering if the attribute self.rotation is relative to the actor instead of the scene, but there is no apparent way to change this, and im not even sure this is the problem. Please help!
Comments
Send and Receive Data using your own Server Tutorial! | Vote for A Long Way Home on Steam Greenlight! | Ten Years Left
Looking at your rules and guessing that your actor is not moving, and also guessing that the actor is at 0° then nothing will happen when the rules are executed as the actor's angle is never larger than 0° ?
Or maybe your actor is rotating but it doesn't rotate as you expect it to (the phrase 'is not working' is about as vague as you can get with code ) ), maybe 'not working' means it goes the wrong way, or stops unexpectedly, or doesn't rotate at all ?
The rules seem to say that if the actor is at any other angle than 0° then it will rotate to 0° - and if it is at 0° it will not rotate at all.
Theres is more script, that controls movement, and yes, rotation but the problem is this particular script. Your conclusion sums up what it is supposed to do, but no matter what, it never corrects its self to 0 degrees, or even movies ONE degree. Can you see anything wrong with the code in the pic i've shown? None of the other code would help you find the problem. Thanks.
Your code looks fine from what I can see, it should do what you say (correct itself to 0°) . . . hold on let me test it . . . . .