TriggerHappy
...
- Reaction score
- 341
Name :Arrow Key Camera System.
Description: Use the arrow keys to move the camera around.
Pros
. Can Manipulate The Camera Any Way You Want , To Have Whatever view you want.
Cons
. Could have some delay in multiplayer games
. Camera is locked to unit , Unless you press escape
Screenshots
Code
Those functions are repeated for all the arrow keys.
Description: Use the arrow keys to move the camera around.
Pros
. Can Manipulate The Camera Any Way You Want , To Have Whatever view you want.
Cons
. Could have some delay in multiplayer games
. Camera is locked to unit , Unless you press escape
Screenshots
Code
Code:
Cam Off
Events
Player - Player 1 (Red) skips a cinematic sequence
Player - Player 2 (Blue) skips a cinematic sequence
Player - Player 3 (Teal) skips a cinematic sequence
Player - Player 4 (Purple) skips a cinematic sequence
Conditions
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
CamOff[(Player number of (Triggering player))] Equal to True
Then - Actions
Set CamOff[(Player number of (Triggering player))] = False
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
CamOff[(Player number of (Triggering player))] Equal to False
Then - Actions
Set CamOff[(Player number of (Triggering player))] = True
Else - Actions
Code:
Inialization
Events
Time - Elapsed game time is 0.00 seconds
Conditions
Actions
Game - Display to (All players) the text: Press Escape To Tur...
Visibility - Disable fog of war
Visibility - Disable black mask
Set PlayersHero[1] = Paladin 0001 <gen>
Set PlayersHero[2] = Archmage 0002 <gen>
Set PlayersHero[3] = Mountain King 0003 <gen>
Set PlayersHero[4] = Blood Mage 0004 <gen>
Player Group - Pick every player in (All players) and do (Actions)
Loop - Actions
Set CamOff[(Player number of (Picked player))] = False
Set AoE[(Player number of (Picked player))] = -50.00
Code:
Camera
Events
Time - Every 0.01 seconds of game time
Conditions
CamOff[(Player number of (Triggering player))] Equal to False
Actions
Player Group - Pick every player in (All players) and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Up[(Player number of (Picked player))] Equal to True
Left[(Player number of (Picked player))] Equal to True
Then - Actions
Set AoE[(Player number of (Picked player))] = (AoE[(Player number of (Picked player))] - 1.00)
Set Rotation[(Player number of (Picked player))] = (Rotation[(Player number of (Picked player))] + 1.00)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Up[(Player number of (Picked player))] Equal to True
Right[(Player number of (Picked player))] Equal to True
Then - Actions
Set AoE[(Player number of (Picked player))] = (AoE[(Player number of (Picked player))] - 1.00)
Set Rotation[(Player number of (Picked player))] = (Rotation[(Player number of (Picked player))] + 1.00)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Down[(Player number of (Picked player))] Equal to True
Left[(Player number of (Picked player))] Equal to True
Then - Actions
Set AoE[(Player number of (Picked player))] = (AoE[(Player number of (Picked player))] + 1.00)
Set Rotation[(Player number of (Picked player))] = (Rotation[(Player number of (Picked player))] + 1.00)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Down[(Player number of (Picked player))] Equal to True
Right[(Player number of (Picked player))] Equal to True
Then - Actions
Set AoE[(Player number of (Picked player))] = (AoE[(Player number of (Picked player))] + 1.00)
Set Rotation[(Player number of (Picked player))] = (Rotation[(Player number of (Picked player))] + 1.00)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Up[(Player number of (Picked player))] Equal to True
Then - Actions
Set AoE[(Player number of (Picked player))] = (AoE[(Player number of (Picked player))] - 1.00)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Down[(Player number of (Picked player))] Equal to True
Then - Actions
Set AoE[(Player number of (Picked player))] = (AoE[(Player number of (Picked player))] + 1.00)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Left[(Player number of (Picked player))] Equal to True
Then - Actions
Set Rotation[(Player number of (Picked player))] = (Rotation[(Player number of (Picked player))] + 1.00)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Right[(Player number of (Picked player))] Equal to True
Then - Actions
Set Rotation[(Player number of (Picked player))] = (Rotation[(Player number of (Picked player))] - 1.00)
Else - Actions
Camera - Pan camera for (Picked player) to (Position of PlayersHero[(Player number of (Picked player))]) over 0.00 seconds
Camera - Set (Picked player)'s camera Angle of attack to AoE[(Player number of (Picked player))] over 0.00 seconds
Camera - Set (Picked player)'s camera Rotation to Rotation[(Player number of (Picked player))] over 0.00 seconds
Code:
UpPress
Events
Player - Player 1 (Red) Presses the Up Arrow key
Player - Player 2 (Blue) Presses the Up Arrow key
Player - Player 3 (Teal) Presses the Up Arrow key
Player - Player 4 (Purple) Presses the Up Arrow key
Conditions
Actions
Set Up[(Player number of (Triggering player))] = True
Code:
UpRelease
Events
Player - Player 1 (Red) Releases the Up Arrow key
Player - Player 2 (Blue) Releases the Up Arrow key
Player - Player 3 (Teal) Releases the Up Arrow key
Player - Player 4 (Purple) Releases the Up Arrow key
Conditions
Actions
Set Up[(Player number of (Triggering player))] = False
Those functions are repeated for all the arrow keys.