Jump to content
Galv

Cam Control

Recommended Posts

Cam Control - Version 1.3
Galv

 

Introduction
Designed to give a little added control over the screen position/camera.


Features
Three simple script calls to:
- Lock the camera to x, y coordinates.
- Make the camera follow an event
- Set camera back to player

The player can still move while the camera is locked to coordinates or another event and the camera will not follow until it is set back to the player.
- Added automatic scrolling to the x,y location, player or event.


Screenshot
So these script postings look boring without a screenie... I had to add one even though it's quite pointless haha.
camera-control.jpg

How to Use
Place script under Materials and above Main.
Read script instructions for script calls.


Script
Get it here

EDIT: A more advanced camera script of mine can be found here


FAQ
None yet.


Credit and Thanks
- Galv
Requested by ze1 and Draconis Kenjishiya

Author's Notes
I wasn't paying attention to this thread but KilloZapit wrote a snippet for centering camera on an event that looks better than what I can do:
http://www.rpgmakervxace.net/topic/7569-change-center-of-screen-to-follow-event/

Updates
2013-03-18 - Version 1.3 - Fixed a bug when following events a scrolling parallax stopped moving.
2013-03-05 - Version 1.2 - Now scrolls map to the event or target you set the camera to follow
2012-10-24 - Version 1.1 - updated alias naming for compatibility with my own scripts. (Yes, lol.) Edited by Galv
  • Like 3

Share this post


Link to post
Share on other sites

Thank you very much! =D

This will be of much use to me!

Share this post


Link to post
Share on other sites

Upgraded this old script to be able to scroll the camera to events or positions on the map as well as keeping the ability to snap instantly to them if required.

  • Like 1

Share this post


Link to post
Share on other sites

This is an amazing script! Very well done! I'll definitely be using this in my game.

Question. Would it be possible at all to make it so that if a switch is turned on, or if a condition in the script is set to true, if the player leaves the screen it can do something?

For example, you know those old side scrolling games (like mario) and some of the levels the camera moved on its own and if you hit the end of the screen it would either push you, or you would die. Would it be possible to add something like that to this?

Share this post


Link to post
Share on other sites

It would be possible but It's not something I will add to this script. I suggest making a script request for that :)

Share this post


Link to post
Share on other sites

Very cool Galv, I'm sure I could come up with some use for this.

 

I have too many scripts in my game, but people just keep putting out such cool stuff, xD

Share this post


Link to post
Share on other sites

Sounds good Galv, thanks! :) I think that I'll just make use of variables to do what I need it to. Again, great script! As usual.

Share this post


Link to post
Share on other sites

Hey, Galv, could I request a feature? Would it be possible to add locking of the x OR y coordinates? So the cam will appear to scroll as normal but not past, say, y = 32?

 

I've been using this script forever now, and I've tried to find ways to make this specific idea work but I just can't. Helps?

 

Thank you!

Share this post


Link to post
Share on other sites

Sorry, no time for requests. This is an old script, one day if I rewrite it I will see about including that.

Share this post


Link to post
Share on other sites

Hey Galv, sorry for bothering, but I have a bug which occurs in this script.

 

I like this script very much and it is quite important for my game. But when I move the camera to specific coordinates and then the camera moves back to the player, the screen sometimes starts to shake while moving back. I can live with that, but sometimes the game freezes (it's rare and quite random) after the camera set to the player while still shaking.

 

Do you have an idea what's wrong here?

Edited by JasonWeal

Share this post


Link to post
Share on other sites

The script only works with default screen size. That happens with larger screen sizes, I haven't fixed this yet.

  • Like 1

Share this post


Link to post
Share on other sites

Hello,

 

I'm having a small issue with the script. I'm pretty sure it's no big deal but I can't figure out how to fix it.

I'm using both the Cam Control script and Hime's 2 players switch script. When I switch the player while the cam control is activated the parralax background refreshs and loops back from the beginning of the loop sequence. This makes for a weird cutting effect in the background. Is there a way to bypass the parralax refresh or something?

 

Thank you in advance!

 

FM

Share this post


Link to post
Share on other sites

Sounds like the scripts are not compatible. Unfortunately I don't have time to investigate what would cause that. I have, however, added an improved camera script that you might want to try, but I cannot promise compatibility with this one, either.

http://galvs-scripts.com/2015/10/09/cam-slide-control/

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

×
Top ArrowTop Arrow Highlighted