RMRK RPG Maker Creation => XP => XP Event Systems => Topic started by: Punk on November 06, 2007, 10:55:05 PM
Title: [XP] Camera Pan 3
Post by: Punk on November 06, 2007, 10:55:05 PM
Camera Pan Control System
Version: 3
Introduction The Camera Pan System allows you, the player, or creator to scroll through your map with the press of a button and arrow keys.
Features
Allows the player to scroll through the map no problem.
(NEW!) The camera no longer returns to you by teleport. Instead, it returns to you by camera pan.
(NEW!) Don't like holding down the Q button? Now you have the option to either hold the Q button to activate the camera pan (hold) or tap the Q button to activate and tap again to deactivate it (toggle).
(NEW!) This is a feature that many members have requested time and time again and it's something I've never got around doing. You, now have the ability to limit how far you want the camera to pan! How's that?
(https://rmrk.net/proxy.php?request=http%3A%2F%2Fimg379.imageshack.us%2Fimg379%2F7882%2Fcpcs2kt0.png&hash=cec40db6bc15c9483d7df05f5619887c95c0fc06) Moving the camera around.
(https://rmrk.net/proxy.php?request=http%3A%2F%2Fimg379.imageshack.us%2Fimg379%2F332%2Fcpcs3kh3.png&hash=8afde3e3b753835f4df29a12e3348a5ec65b8d11) Camera returning to me. (Although you may not see that happening since the picture's not in motion of course, that's what is happening.)
Demo It's a bit complex so I'll have it up for download. Read the bulletin for more details on how to use this system in the demo. Left click! Demo here. (http://rpgm.us/download.php?file=416Camera Pan Control System 3 - Punkid89.zip) System
Spoiler for Requires:
6 Common Events 2 Switches 3 Variables
Spoiler for The Variables:
1: Player Screen X (Keeping track of Player Screen X coordinate.) 2: Player Screen Y (Keeping track of Player Screen Y coordinate.) 3: Hold or Toggle (It's better than using some switch to do this imo.)
Spoiler for The Switches:
1: Camera Pan Control System (The trigger switch for all common events of this event system) 2: Camera Panning (Meant for camera pan.)
Spoiler for Coordinates:
This common event keeps track of the player's screen coordinates. Trigger: Parallel Switch: Camera Pan Control System ---------------------------------------------------------------
@>Conditional Branch: Switch: [Camera Panning] = ON @@>Show Picture: 'arrows.png' Upper Left, (0,0) @>Else @@>Erase Picture @>Branch End
Instructions Download this image below! (https://rmrk.net/proxy.php?request=http%3A%2F%2Fimg357.imageshack.us%2Fimg357%2F2554%2Farrowsgu5.png&hash=7b465d7b20604e436009fbe1fc5d760ff36ec8b6)
FAQ If you are looking for support for this event system then ask away in this thread or find me in a place where I can give better support.
Credits and Thanks Twilight, Q-Man, Zero, Dorito, and ParkAvenger for putting their thoughts into this.
Terms and Conditions Just credit Punk.
Title: Re: Camera Pan 3
Post by: bulls84 on November 07, 2007, 12:19:37 AM
This awesome! I was trying to make something like this for my game, and now here it is. Perfect timing. I noticed one glitch though. In the bottom left corner the camera doesn't come back down once you move it up.