Main Menu
  • Welcome to The RPG Maker Resource Kit.

[XP] Camera Pan Control System 1

Started by Punk, November 06, 2007, 09:33:47 PM

0 Members and 1 Guest are viewing this topic.

Punk

The latest Camera Pan Control System is version 3!

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

Player's original spot

Set in camera moving mode
Camera pans a little more
More camera panning

File to download (Optional for this system.)

modern algebra

#1
That looks pretty nice. Very nice system, Punk.

EDIT:
Though I am curious as to why you use teleportation rather then just disabling player movement.

Kokowam

Lol. Looks nice. What's with the mapping, though? :P

Punk

Whoopsies. That was the old camera pan. The new one disables player movement and pans right back to the player. *gets CPCS3*