I need something that would allow temporary move camera a bit away to show more of the map, or (and?) fix the vertical movement, allowing only horisontal one. None of the plugins i found myself does it, but maybe there are more?
MV Camera control plugin?
JS Plugin RequestsI doubt any of the plugins will do that, simply because the engine doesn't render anything that's not close to the game window. For such things, you make the player invisible and move that around as the camera.
(Although I've been using galv's cam control and that worked perfectly fine, so I assume you want to move REALLY far away from the player?)
(Although I've been using galv's cam control and that worked perfectly fine, so I assume you want to move REALLY far away from the player?)
I know of a plugin to lock camera in Y or X position, but none
specifically to look forward (still or by walking).
however, galv camera could move it forward if able when idle
if set in parallel process with
otherwise, I have no clue.
specifically to look forward (still or by walking).
however, galv camera could move it forward if able when idle
if set in parallel process with
!$gamePlayer.isMoving().otherwise, I have no clue.
It sounds like what you're looking for is map zooming?
Here's the plugin I use for that: MBS Map Zoom
I've never used Galv's cam control, but I've never had bad experiences with a Galv plugin, so you should check this one out!
Galv's Cam Control
Just based on the description, it looks like you can attach the camera to other events or coordinates in order to move it apart from the player character, while still leaving the player character visible on the map. This, combined with the map zoom plugin, should let you move the camera how you want to, if I've understood you correctly.
If you don't want player moving up or down, you could use a plugin to control keyboard input. Disable/change the result of pressing the up/down keys. I think you can do this with Yanfly's Button Common Events plugin (assign an empty event to the up/down keys)
This workaround will only work if you're willing to disable touch movement.
There may be other plugins better suited to accomplish it, these are just the ones I'm familiar with, so try to look up key words that might be in the titles of such plugins.
Depending on how you're building your map, you might also be able to prevent vertical movement very simply with Yanfly's Region Restrictions. This just lets you set regions in the editor (invisible in gameplay) that determine whether or not the player can pass through the marked tiles. If you don't want them to move vertically, make it so the player only has a single file, horizontal line of tiles to walk on. They can turn up or down, but they can't move up or down, and the map can look wide open even though the player can only move in a horizontal line. You can't change regions mid-game, though, so you'll need to build your map with passable gaps wherever the player is supposed to move up or down, or else use event commands/through states to move them past the impassable tile.
I want player to move, but i want the camera to stay at the same place vertically, but still follow the player horisontally. I have upper part of the map to show to the player, but when he moves even 1 step down camera moves as well, but there is nothing to show down bellow. The map is very wide but not tall, so the player will always be visible, i just want the camera to only move when player moves to the side.
Is is possible to make it move only left and right, but not up or down?
yes, but I can't find the plugin that can do that, I don't know if I had
it saved, as it could lock camera Y, so it moves left and right,
but not up and down.
however, player can still go down if the map is larger than your resolution.
Edit:
I don't have it, so here is a mini version which can achieve your way.
as I don't add parameters, but you can alter the switch ID for
Left or Right and Up and Down switches if you want too.
I make it later cleaner, useable by gameSystem to save the true/false
value to save through save files as well.
so switches aren't required.
Call the plugin however you want with this version, if I get time, I make
it a bit cleaner with parameters.
if you have issues, let me know (as it quick tested).
Edit: New version using scriptcalls on the latest post (#10)
it saved, as it could lock camera Y, so it moves left and right,
but not up and down.
however, player can still go down if the map is larger than your resolution.
Edit:
I don't have it, so here is a mini version which can achieve your way.
as I don't add parameters, but you can alter the switch ID for
Left or Right and Up and Down switches if you want too.
I make it later cleaner, useable by gameSystem to save the true/false
value to save through save files as well.
so switches aren't required.
Call the plugin however you want with this version, if I get time, I make
it a bit cleaner with parameters.
if you have issues, let me know (as it quick tested).
Edit: New version using scriptcalls on the latest post (#10)
It works, thanks a lot!
Though it seems like it is active by default, meaning - camera is blocked all the time unless the switch is active. It's not a problem to just turn it on on start, and turn off when camera needs to be fixed, but i think it would be better if it worked in reverse - activating the switch blocks the camera movement.
Ohh I understand now! Yeah, we all want that eventually, don't we?
Here you go. It's short and simple, uses one parameter and a few script calls, but it should do the trick.
Just keep in mind that it doesn't stop the player from wandering off the screen beyond the camera's view, it just stops the camera from following them up or down. You'll wanna set boundaries/restrictions at the top and bottom of the map unless you want them to be able to go off screen.
Also works well, thank you!
to do it when its on, find `$gameSwitches` and read it like
`!$gameSwitches.value` with an ! in front, and it needs to be ON.
I fix it in the next version with gameSystem bit, if you can wait
a little hour, I got this version for you ready.
Edit:
latest version based on GameSystem rather than switches.
fully working CameraX lock and CameraY lock or both.
works in looping maps, no stutter.
`!$gameSwitches.value` with an ! in front, and it needs to be ON.
I fix it in the next version with gameSystem bit, if you can wait
a little hour, I got this version for you ready.
Edit:
latest version based on GameSystem rather than switches.
fully working CameraX lock and CameraY lock or both.
works in looping maps, no stutter.
Looks like both solutions have critical issues so far. So i am looking for the alternatives for now. Or of a fix for either of them, but since i have a release in few days, i am not sure if its possible to fix them in time.
Perhaps, a script command that would lock camera from vertical movement exist, so i could not use a plugin?
Perhaps, a script command that would lock camera from vertical movement exist, so i could not use a plugin?
Please test this and let me know if it is what you were looking for.
Keep in mind that I had to rewrite a few things so test as needed. This is my own personal edit.
Credit for the patch is appreciated but not required as this is Galv's plugin - I'm just adding things that I thought worked for me as well.
Use script call Galv.pCmd.CAM(arguments) as shown in the video or the normal plugin commands:
CAM LOCK X
CAM LOCK Y
CAM UNLOCK
==== EDIT: =====
I added events to the process as well.
CAM EVENT 2 800 LOCK X means camera at event 2, lock the x at 800 speed
CAM PLAYER 1500 LOCK Y means camera at player, lock the y at 1500 speed
Let me know if this works.
Here is the result:
Please download the new version here.
you go outside of bounderies, mine has looping, but it I'm gonna make my own
that cannot go through bounderies and more, but this isn't a 1-2 days task, gonna
need tons of testing to make the basic work.
it seems to work without looping, but I try to fix that too as if do miss something
crucial somewhere.
so I rewrite the parts to make sure it works.
but nicely done on edit, which can be really useful.
Cool - updated to include events. Feel free to edit.
Thank you. It works near perfectly, does what is needed, but... it also has the issue: it completly disables the scroll map command, and doing it by default (just plugin being turned on, no commands entered). The function simply does nothing while it is on, and it is a problem since it breaks many scenes. Is there a way to fix that?
It's so weird that each of the plugins break something, but the effect is different every time.
Is it doing it with the normal unmodified Galv plugin?
I can't try that, because unmodified plugin causes black screen for me. None of the game graphics load, except the pictures shown via show picture or other methods. The rest - levels, characters, are just do not render.
UPDATE: i decided to try SRD's camera core plugin to see of i can use zoom out instead of camera fix to work around the problem. And...
I getting this when plugin is active. Again, no commands, nothing, just error on new game start.
What has the weather field have to do with camera settings? I have no idea.
UPDATE 2: tried another one of zooming plugins, MBS - Map Zoom. This one does not have command for zooming out, so i tried to just add negative (-) numbers to zoom command. The result is hilarious - map disappears, characters turn upside down and you walk in reverse. Certainly can be used for some creative solutions, but not what i need.
I'm not at the computer at the moment, though if I recall correctly, you may have to use a plugin command to disable the Galv cam in order to use the scroll map event command since the way Galv coded it makes it commandeer the camera from the default methods.
Basically, each time you need the normal map scroll command, you need to disable galv and then enable galv with the plugin command CAM DISABLE and reactivating it with CAM PLAYER, etc.
Thank you, i will try that. Disabling plugin seems to be a viable soluton to the issue.
Also, NoNameWithoutAName fixed the issue i had, so his solution seems to be working as well. Testing now to see if there are any other issues.
By some miracle, I seem to have stumbled my way to success. Or at least I hope so. I'll sacrifice a goat to the js gods just in case XD
I'm updating my previous post to the rewritten version that might, you know... actually work outside of the specific project I made it for. And maybe I'll learn to consider how functional my plugins are before posting them as solutions XD I learn slowly, but I do learn!
I'm updating my previous post to the rewritten version that might, you know... actually work outside of the specific project I made it for. And maybe I'll learn to consider how functional my plugins are before posting them as solutions XD I learn slowly, but I do learn!
Original thread: https://forums.rpgmakerweb.com/threads/camera-control-plugin.179061/