- Joined
- Sep 27, 2011
- Messages
- 141
I have made a trigger to rotate the camera but whenever it faces about directly down it quickly spins to face the left then it just gets stuck going in circles can someone please help
-
Movement System
-
Events
-
Timer - Every 0.03 seconds of Game Time
-
-
Local Variables
-
Conditions
-
Actions
-
Player Group - Pick each player in (All players) and do (Actions)
-
Actions
-
Variable - Set Temp_Int = (Picked player)
-
Variable - Set Temp_Loc = (Position of Player_Hero[Temp_Int])
-
General - If (Conditions) then do (Actions) else do (Actions)
-
If
-
And
-
Conditions
-
Player_Forward[Temp_Int] == True
-
Player_Backward[Temp_Int] == False
-
Player_Left[Temp_Int] == False
-
Player_Right[Temp_Int] == False
-
-
-
-
Then
-
Variable - Set Temp_Loc 2 = (Temp_Loc offset by 0.25 towards (Facing of Player_Hero[Temp_Int]) degrees)
-
Unit - Move Player_Hero[Temp_Int] instantly to Temp_Loc 2 (Blend)
-
-
Else
-
General - If (Conditions) then do (Actions) else do (Actions)
-
If
-
And
-
Conditions
-
Player_Forward[Temp_Int] == False
-
Player_Backward[Temp_Int] == False
-
Player_Left[Temp_Int] == True
-
Player_Right[Temp_Int] == False
-
-
-
-
Then
-
Variable - Set Temp_Loc 2 = (Temp_Loc offset by 0.07 towards ((Facing of Player_Hero[Temp_Int]) + 8.0) degrees)
-
Unit - Make Player_Hero[Temp_Int] face Temp_Loc 2 over 0.5 seconds
-
-
Else
-
General - If (Conditions) then do (Actions) else do (Actions)
-
If
-
And
-
Conditions
-
Player_Forward[Temp_Int] == False
-
Player_Backward[Temp_Int] == False
-
Player_Left[Temp_Int] == False
-
Player_Right[Temp_Int] == True
-
-
-
-
Then
-
Variable - Set Temp_Loc 2 = (Temp_Loc offset by 0.07 towards ((Facing of Player_Hero[Temp_Int]) - 8.0) degrees)
-
Unit - Make Player_Hero[Temp_Int] face Temp_Loc 2 over 0.5 seconds
-
-
Else
-
General - If (Conditions) then do (Actions) else do (Actions)
-
If
-
And
-
Conditions
-
Player_Forward[Temp_Int] == False
-
Player_Backward[Temp_Int] == True
-
Player_Left[Temp_Int] == False
-
Player_Right[Temp_Int] == False
-
-
-
-
Then
-
Variable - Set Temp_Loc 2 = (Temp_Loc offset by 0.1 towards ((Facing of Player_Hero[Temp_Int]) - 180.0) degrees)
-
Unit - Move Player_Hero[Temp_Int] instantly to Temp_Loc 2 (Blend)
-
-
Else
-
General - If (Conditions) then do (Actions) else do (Actions)
-
If
-
And
-
Conditions
-
Player_Forward[Temp_Int] == True
-
Player_Backward[Temp_Int] == False
-
Player_Left[Temp_Int] == True
-
Player_Right[Temp_Int] == False
-
-
-
-
Then
-
Variable - Set Temp_Loc 2 = (Temp_Loc offset by 0.15 towards ((Facing of Player_Hero[Temp_Int]) + 45.0) degrees)
-
Unit - Move Player_Hero[Temp_Int] instantly to Temp_Loc 2 (Blend)
-
-
Else
-
General - If (Conditions) then do (Actions) else do (Actions)
-
If
-
And
-
Conditions
-
Player_Forward[Temp_Int] == True
-
Player_Backward[Temp_Int] == False
-
Player_Left[Temp_Int] == False
-
Player_Right[Temp_Int] == True
-
-
-
-
Then
-
Variable - Set Temp_Loc 2 = (Temp_Loc offset by 0.15 towards ((Facing of Player_Hero[Temp_Int]) - 45.0) degrees)
-
Unit - Move Player_Hero[Temp_Int] instantly to Temp_Loc 2 (Blend)
-
-
Else
-
-
-
-
-
-
-
-
-
-
-
-
Camera - Apply camera object Height Offset ((Height of Player_Hero[Temp_Int]) + 1.0) for player Temp_Int over 0.5 seconds with 100.0% initial velocity and 0.0% deceleration
-
Camera - Apply camera object Distance 15.0 for player Temp_Int over 0.0 seconds with 100.0% initial velocity and 0.0% deceleration
-
Camera - Apply camera object Rotation (Facing of Player_Hero[Temp_Int]) for player Temp_Int over 0.5 seconds with 100.0% initial velocity and 0.0% deceleration
-
Camera - Pan the camera for player Temp_Int to Temp_Loc over 0.5 seconds with Existing Velocity% initial velocity, 0.0% deceleration, and Do Not use smart panning
-
-
-
-