Angle attribute
LyboTech
Member Posts: 135
I'm using an angle attribute to turn my character 180 degrees every time X attribute is true, but when it turns the second time (from 180 to 360(0)) it turns the wrong way, is there any way to avoid this ?
Answers
Changed to "Working with GS (Mac)" category. Let me know if you want it changed to a different category.
What rules are you using? Stating a specific setup will often get you specific answers (rather than a generic answer).
. . . also 'the wrong way' is vague, it doesn't really convey any information, what is the 'wrong way' to one person might be the right way to another ! You may as well just go the whole way and reveal what is going on - i.e. state that the actor moves CCW but I want it to move CW or the actor moves CW and I want it to move CCW (or something else) . . . . using 'the wrong way' means people need to make guesses as to what the issue is, the more you make people guess about this issue the slower it is to get responses for your issue, and the more likley that those responses are based on guesswork (or as RThurman puts it: "Stating a specific setup will often get you specific answers").
@Socks @RThurman
When game.jump is true
Change attribute game.Y to game.Y-90
Y = Angle attribute.
The character should rotate clock-wise, which it is the 3 first jumps (270 degrees) but when hitting 4th jump it resets to 0 and goes CCW
Ouch! Rejected answer.
Just trying to be helpful here!
@RThurman No harm ment, it just didn't answer the question, but thanks for the help
So are you going to reject everyones help?
Rejecting an answer is like a kick in the shins (or worse). Are you sure you want to be kicking at people who are trying to help?
@RThurman I'm only looking for help regarding the specific question, please keep the thread clean...
Try using an integer (or 'real') attribute instead.
@Socks Thanks, but then again it would not be limited to 360 degrees, the character should only turn 90 degrees each turn, if I used a normal integer it would spin way more, any other suggestions ?
///
Just did this in GS, around 15 seconds work (literally).
So weird, did exactly the same thing earlier @RThurman but it worked now, thanks!