Skip to content

Node2d Rotating

endritdev edited this page Aug 3, 2022 · 2 revisions

---------------------------------HELP SECTION---------------------------------

-----------------------------------#PREVIEW-----------------------------------

  • By checking the preview you'll see the rotation in action in the editor
  • It may require reloading the scene to work
  • Preview doesn't mean active in game

------------------------------------#ACTIVE-----------------------------------

*Check this box to make it work in game

------------------------------------#SPEED--------------------------------------

  • The speed it's going to rotate
  • Can be a flat
  • It's moltiplyed by delta so it's affected by time scale

--------------------------------#ROTATION VERSE--------------------------------

  • You can chose if the node will rotate in clockwise or antiClockWise

--------------------------------#START AND STOP--------------------------------

  • You can call the start() and stop() functions
  • Start (speed:1 by default, verse: 1 by default)
  • You can specify speed value inside start if not it's going to use the variable
  • you can specify verse of rotation on start 1==clockwise , -1 antiClockWise
  • Stop() stops your rotation

Clone this wiki locally