The RPG Maker Resource Kit

RMRK RPG Maker Creation => XP => XP Event Systems => Topic started by: Punk on November 06, 2007, 09:33:47 PM

Title: [XP] Camera Pan Control System 1
Post by: Punk on November 06, 2007, 09:33:47 PM
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
(https://rmrk.net/proxy.php?request=http%3A%2F%2Fi9.photobucket.com%2Falbums%2Fa64%2Fpunkid89%2Fscreenies%2Foriginally.jpg&hash=5aa5a047b5dd03e31fa63d66afd2ece5c770fbc8)
Player's original spot
(https://rmrk.net/proxy.php?request=http%3A%2F%2Fi9.photobucket.com%2Falbums%2Fa64%2Fpunkid89%2Fscreenies%2Fcammoving1.jpg&hash=485d98ec8e07e915ce22cc2533e1a38426514a51)
Set in camera moving mode
(https://rmrk.net/proxy.php?request=http%3A%2F%2Fi9.photobucket.com%2Falbums%2Fa64%2Fpunkid89%2Fscreenies%2Fcammoving2.jpg&hash=c22a052a658f144c0dc5fb8f6b91870365fb4f43)Camera pans a little more
(https://rmrk.net/proxy.php?request=http%3A%2F%2Fi9.photobucket.com%2Falbums%2Fa64%2Fpunkid89%2Fscreenies%2Fcammoving3.jpg&hash=27a1d06915effed34f032391f36ce287a7ff4034)More camera panning
 
File to download (Optional for this system.)
(https://rmrk.net/proxy.php?request=http%3A%2F%2Fi9.photobucket.com%2Falbums%2Fa64%2Fpunkid89%2FDemos%2FArrows.png&hash=9fd24d5b020b8c3e050e5671ca8fe3e559ff16ac)
Title: Re: Camera Pan Control System 1
Post by: modern algebra on November 06, 2007, 09:42:42 PM
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.
Title: Re: Camera Pan Control System 1
Post by: Kokowam on November 06, 2007, 09:45:07 PM
Lol. Looks nice. What's with the mapping, though? :P
Title: Re: Camera Pan Control System 1
Post by: Punk on November 06, 2007, 10:48:09 PM
Whoopsies. That was the old camera pan. The new one disables player movement and pans right back to the player. *gets CPCS3*