Documentation & Tutorials
  • Pivec Labs Documentation & Tutorials
  • Assets for Game Creator 1
    • Action Pack 1
      • Action List
        • Misc Actions
        • Object Actions
        • TMP Actions
      • Examples
        • Example 1 TMP
        • Example 2 Objects
        • Example 3 Actions
    • Action Pack 2
      • Action List
        • Camera Actions
        • Graphics Actions
        • Audio Actions
        • Video Actions
      • Triggers
      • Components
      • Examples
        • Example 1 - Camera
        • Example 2 - Camera FPS
        • Example 3 - Graphics
        • Example 4 - Sounds
        • Example 5 - Audio Player
        • Example 6 - Video Player
    • Action Pack 3
      • Action List
        • Day/Night Cycle
        • Light Control
      • Components
      • Examples
        • Example 1 - Day Night Cycle
        • Example 2 - Light Control
    • Accessibility Module
      • Components
      • Setup
      • Auditory Aids
        • Closed Captions for Sounds
        • Volume Control with Tags
        • Multiple Volume Controls
      • Motoric Aids
        • Configurable Tank Camera
        • On-Screen Multi-Function Joystick
        • Dynamic Touchstick
        • Multi-Function Touchstick
      • Cognitive Aids
        • Parental Controls with Password
        • Dyslexia Font Options
        • Motion Sickness Prevention
        • Gameplay Speed and Sensitivity
      • Visual Aids
        • Colour Picker
        • Variable Text Size
        • Object Outlining
        • Colour Switching
        • Colour Correction
    • Mobile Components
      • Actions
        • Haptics
        • Camera
        • TouchSticks
        • Gyroscope
        • Utilities
      • Triggers
        • Touch Gestures
      • Conditions
      • Components
      • Prefabs
      • Examples
        • Example 1 Haptics
        • Example 2 Cameras
        • Example 3 Gestures
        • Example 4 Controls
        • Example 5 Steering Wheel/Pedals
        • Example 6 Gyroscope Controls
        • Example 7 Gyroscope Camera
        • Example 8 Utilities
        • Example 9 AutoRun
      • Extras
    • UI Components
      • Canvas Components
        • Canvas Animations
        • 3D Models on a Canvas
        • Video on a Canvas
      • Animating UI Elements
        • Cross Fade Elements
        • Slide Elements
        • Shake UI Element
        • Tooltips
      • Text Mesh Pro & uGUI Text
      • Colour Picker Component
      • Mini Map Component
        • MiniMap QuickStart
        • Fullscreen Map
        • Adding Markers
        • Adding Labels
      • System Info Panel
        • SysInfo Quickstart
        • Using SysInfo Toggle
      • Main Menu Templates
        • Customising the Prefabs
        • Load/Save System
        • Comic Strip Example
    • Developer Tools
      • Time Manager
        • Actions & Conditions
      • Waypoint System
      • Click to Spawn Objects
      • In-Game Console
      • In-Game Screen Capture
    • Turn Based Module
    • VR Module GC1
  • Assets for Unity
    • Developer Tools for Unity
      • Click to Spawn
      • In-Game Screen Capture
      • In-Game Console
    • Mini Map System
      • MiniMap Quickstart
      • Map Parameters
      • Adding Makers
  • Tutorials
    • Tutorials for Game Creator 1
      • Installing and Updating Modules
      • Adding Actions to the Button Bar
      • Changing the Graphics for TouchStick
      • Adding Passwords to Player Actions
      • Using the Colour Picker with Variables
      • Creating a 3D Inspection Panel for Game Objects
      • Customising the UI MiniMap
      • Creating a toggle for the SysInfo Panel
      • Simple Player Run on Left Shift Down
      • Pan Follow Camera with Keyboard
    • Tutorials for Unity
  • ANNEX
    • Roadmap
    • FAQ
Powered by GitBook
On this page

Was this helpful?

  1. Tutorials
  2. Tutorials for Game Creator 1

Pan Follow Camera with Keyboard

PreviousSimple Player Run on Left Shift DownNextTutorials for Unity

Last updated 5 years ago

Was this helpful?

Some games just require a camera to follow the ground plane in an isometric style. I have done this with mobile games using the touch screen, but at present that requires some coding. However, for the desktop, this can be achieved quite simply using a few simple Actions and the Game Creator Follow Camera.

For this Tutorial, in addition to Game Creator, you will need the following:

  • Move by Distance Action from the Action Pack 1 for Game Creator

  • On Key Being Pressed Trigger from the Game Creator HUB.

These can be found at:

and respectively.

To start, once you have created your terrain or ground plane, you need to decide on the camera angle that suits the style of your game. This is controlled by the placement of two 3D cubes, and you can also adjust them later to suit.

Add a Game Creator Camera Motor and set this to Follow. But before we set the parameters in this motor, we need to add our two Cubes. Add the first cube above the terrain and approximatley where you want the camera to start from.

Add the Second Cube forward and down from the first.

Then child the Second cube under the first, so when the First cube is moved, so will the second, but maintain its distance and perscpective.

Next, in the Follow Camera Motor, set the Anchor to Game Object and select the Parent Cube, and set the Look At to Transform and select the child Cube.

You can adjust the view angle by dragging the second cube outwards, and the first cube up or down.

Once you have the angle how you want it, its time to make it move. The settings here will depend on your scale, and for this demo I have used an extremley large terrain. The smaller the terrain or ground plain, the smoother it will be.

Unclick the Mesh Renderes for both Cubes, so they are not seen, nor is time wasted rendering them

Now we add a Trigger into our scene. Select the On Key Being Pressed that you downloaded from the Game Creator HUB. Set it to W (or whatever Key you want for forward), and add an Action. Within the Action, add the Move Object by Distance from the Action Pack 1, and add the Parent Cube to the Game Object.

Select x Axis to Move and set your value. I have set to 100, but on a smaller terrain, 10 should be okay. You can experiment with these later to get your desired effect. Also set the Easing to Linear, or you will get some interesting effects.

The last thing to do is to duplicate the Trigger with Action, Change the Key to S, and make the move value in the Move Action negative. Now press play.

My scene is a bit slow as the Terrain I used was extremely large. A smaller terrain or floor plane will be a lot smoother. You can also tilt the camera more to provide an isometric view of a 2.5d Game.

You can also duplicate the Trigger twice more, set the keys to A and D, and move on the y axis. This will move your camera sideways.

Have Fun!

http://u3d.as/1RJN
https://hub.gamecreator.io/content/item/HfEBp4iZY83YwI5lbqDK