key arrow camera rotates

Status
Not open for further replies.
Level 13
Joined
Oct 28, 2019
Messages
518
  • RightKey
    • Events
      • Player - Player 1 (Red) Presses the Right Arrow key
    • Conditions
    • Actions
      • Set VariableSet FacinAngle = (Facing of DummyCamera 0017 <gen>)
      • Unit - Make DummyCamera 0017 <gen> face (FacinAngle + 45.00) over 0.00 seconds
      • Wait 0.01 seconds
      • Camera - Set Player 1 (Red)'s camera Rotation to (Facing of DummyCamera 0017 <gen>) over 0.50 seconds
IDK if theres a way to make this smooth ?
 
Level 43
Joined
Feb 27, 2007
Messages
5,465
Querying the camera's current facing is what necessitates that Wait, so just use the number you already know is correct instead of trying to read it again.
  • RightKey
    • Events
      • Player - Player 1 (Red) Presses the Right Arrow key
    • Conditions
    • Actions
      • Set VariableSet FacinAngle = ((Facing of DummyCamera 0017 <gen>) + 45.00)
      • Unit - Make DummyCamera 0017 <gen> face (FacinAngle) over 0.00 seconds
      • Camera - Set Player 1 (Red)'s camera Rotation to (FacinAngle) over 0.50 seconds
 
Status
Not open for further replies.
Top