System Arrow Key Camera System

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

cam1.jpg

cam2.jpg

cam3.jpg

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.
 

Lobster

Old Fogey ofthe site
Reaction score
90
thats a pretty neat feature. However, you should have a way of turning that on and off by pressing esc or something.

Good job and + rep though.
 

PurgeandFire

zxcvmkgdfg
Reaction score
508
It is nice and smooth, but this part leaks. ;) In the camera trigger:
Code:
Camera - Pan camera for (Picked player) to [B][U](Position of PlayersHero[(Player number of (Picked player))])[/U][/B] over 0.00 seconds
 

quraji

zap
Reaction score
144
Nice and simple :), but I have a few suggestions:
Smooth out the movement, it's very jittery.
Prevent the camera from doing funky things like going through the ground, and twitching when you first press a key.
Try to fix this issue: Sometimes it freaks out if you try to go left or right and up or down at the same time.

I haven't looked at the code.

If you want implement these suggestions I can help if need be.
 
Reaction score
341
Thanks , i made this in like 10 min just to see if i should add to my rpg ( im not adding... ) but i will make these updates whenever im in the mood for map making
 

Sui-cookie

You can change this now in User CP.
Reaction score
49
It can work for any player.

Just add the rest of the players 2 the event

ah, alright, usefull how u set up the entire trigger for the (triggering player)
:thup:
edit: also, the deys are inversed to me, it seems that way. if i were to change the keys arround, taht should change my little problem right? ( not physically move my keys :) ) u know what i meant
 
Reaction score
341
I updated it to version 0.04 .

Changes :

.Added Camera Limits , No viewing undergournd / upside down
.Made smoother
.Added Height Offset
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top