YesNoOk
avatar

AngleSet (SCTRL) (Read 14215 times)

Started by JustNoPoint, October 22, 2015, 05:16:43 pm
Share this topic:
AngleSet (SCTRL)
#1  October 22, 2015, 05:16:43 pm
  • ******
    • www.justnopoint.com/
Sets the drawing rotation angle used by AngleDraw. The angle is initialized at 0.

Required arguments:

value = angle (float)
the value of angle is interpreted to be in degrees.

Optional arguments:
none

Example:
none
Re: AngleSet (SCTRL)
#2  February 11, 2016, 05:49:31 pm
  • ****
  • Robotics Engineer
    • USA
    • altoiddealer@gmail.com

Re: AngleSet (SCTRL)
#3  September 27, 2016, 04:11:04 pm
  • *****
  • Thanks and God bless
    • USA
    • ricepigeon.neocities.org
Note that if value is defined in the AngleDraw controller, that value will take precedence over the value stored by AngleSet. Additionally, the value set by AngleSet persists between states, including custom states set by player2

Therefore, if you plan to use AngleDraw for scaling a sprite, it is highly recommended using AngleSet to reinitialize the angle back to 0. In addtion to this, try to avoid using AngleSet in custom states for this same reason, otherwise you'll end up with some hilarious unintentional angle effects such as this: