Jump to content
New account registrations are disabed. This website is now an archive. Read more here.
Sign in to follow this  
Punk

Camera Pan Control System

Recommended Posts

Requires

4 Common Events

3 Variables

2 Switches

 

Common Events

Activating Camera pan

Trigger: Parallel Process

Switch: 0001: Camera Common Event

Event Commands

- Conditional Branch: Script: Input.press?(Input::L)

-- Switch: [0002: Camera Pan] = ON

-- Else Handler

-- Switch: [0002: Camera Pan] = OFF

-- End

 

Camera Pan Activated

Trigger: Parallel Process

Switch: 0002: Camera Pan

- Conditional Branch: Script: Input.press?(Input::L)

-- Conditional Branch: Script: Input.press?(Input::UP)

--- Pan Screen: Up, 1, 4 (Direction, Tile space, Speed)

-- Conditional Branch: Script: Input.press?(Input::DOWN)

--- Pan Screen: Down, 1, 4 (Direction, Tile space, Speed)

-- Conditional Branch: Script: Input.press?(Input::LEFT)

--- Pan Screen: Left, 1, 4 (Direction, Tile space, Speed)

-- Conditional Branch: Script: Input.press?(Input::RIGHT)

--- Pan Screen: Right, 1, 4 (Direction, Tile space, Speed)

--- End

-- End

 

Updating player variables

Trigger: Parallel Process

Switch: 0001: Camera Common Event

Event Commands

Variable: [0001: MAP ID] = MAP ID

Variable: [0002: Player X] = Player X Coords

Variable: [0003: Player Y] = Player Y Coords

 

 

Taking away player movement

Trigger: Parallel Process

Switch: 0002: Camera Pan

- Conditional Branch: Script: Input.press?(Input::L)

-- Move Event: Player (Check repeat)

: Wait 1 Frames

-- Else Handler

-- Move Event: Player (Don't check repeat)

: Wait 1 Frames

-- Teleport: By Variables: [0001][0002][0003], No fade

-- End

 

 

Screenshots

originally.jpg

Player's original spot

cammoving1.jpg

Set in camera moving mode

cammoving2.jpgCamera pans a little more

cammoving3.jpgMore camera panning

 

File to download (Optional for this system.)

Arrows.png

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...