Advanced Camera Plugin (Updated: 09/21 - v0.93b)

This forum is currently in read-only mode.
0 favourites
From the Asset Store
Set of 21 Food plus 6 boards, for different kind of games
  • I meant to have this out back in June(I've been working on this forever), but since nobody knew about this plugin until now, that's okay. So, I now introduce to everybody the:

    Advanced Camera Plugin - v0.93b

    Download Now(with example) - 150KB

    To install, extract the contents of the ZIP file into your Construct folder.

    What this plugin does is allows you to have an unlimited amount of named cameras which you can easily switch between, set to follow objects, etc. Here's a list of the main features:

    Features:

    • Create unlimited, named cameras
    • Switch between cameras, either smoothly or instantaneously
    • Follow objects with advanced options like lag and offset
    • Follow at a point between two objects
    • Smoothly transition between different locations, zooms, and angles
    • Cubic interpolation used so there are no sudden starts or stops
    • Camera shake action with magnitude, duration, dropoff, and smoothness settings
    • Easy to setup Mega Man style grid scrolling

    The download comes with an example showing off the big features and should give people a good understanding of how to use it, but if you have any other questions, be sure to ask, I'll be glad to help.

    If you find any bugs, please be sure to mention them and give specific information on what you were doing. Also, if there are any features you'd like to see, let me know and I'll see what I can do.

    Well, that's it. Download away and be sure to let me know what you think. Enjoy!

    NOTE: The example is made in .99.5. Sorry for anybody using an earlier version. I wasn't taking this into account when making the example.

  • Really great plugin this.

    I have a problem on the last layout (the camera switching one).

    I get

    [quote:27y620qo]Cannot test conditional expression on non-integer type. Operator had no effect

    Event 2

    Action 1

    I noticed that that event was [quote:27y620qo](AdvancedCamera.CurrentCamera = "Main") ? "Second" : "Main"

    so changed the ? to : this stops the error but the camera never switches. I then got rid of all that was in the quotes above and used

    [quote:27y620qo]On Key Space Pressed - AdvancedCamera:Switch to camera "Second" in 2000m/s

    This worked perfectly. I'm guessing that the event you used on a second space keypress would change back to the "main" and on a third keypress back to "Second".

    I'm still using 0.99.42 here is that the problem with the event you used?

    Great work anyway going to use this for sure.

    Thanks

  • Oh, this sounds awesome, I'll give it a try tomorrow!

  • Sweet! Really practical and usefull plugin. good work! Seems to work fine for me, the only problem is that in the last example (with the two moving objects) the camera seems to be shaking in the transition.

  • this seems useful.

    At first I thought it would be for tilting/changing camera angle etc, lol.

  • Thanks for the comments, guys.

    I'm still using 0.99.42 here is that the problem with the event you used?

    .99.42 might have had problems with the conditional operator using strings, but I'm not sure. But you are correct in what it should be doing.

    the only problem is that in the last example (with the two moving objects) the camera seems to be shaking in the transition.

    Transitions are usually at their best when the object/camera being transitioned to isn't moving. I've been trying to find a way to combat this, so I'll see what I can come up with.

    By the way, I'll be putting up a new version later today with a camera shake action, so stay tuned for that.

  • hey link

    havent tried the plugin yet

    but if you have trouble fixing the shaky cam while transitioning between moving targets, i did alot of moving target interpolating stuff with the bone animator. pm me if you get stuck

    this sounds awesome though...

    could save alot of work, when i start my game

  • hey link

    havent tried the plugin yet

    but if you have trouble fixing the shaky cam while transitioning between moving targets, i did alot of moving target interpolating stuff with the bone animator. pm me if you get stuck

    Thanks. I actually found the problem. No real way to explain it properly unless I took the time to explain how the plugin does things, but to make a long story short, I was checking for a 0 where I should have been checking for a 1.

    Anyways, new version is up:

    Advanced Camera Plugin - v0.5b

    Download Now(with example) - 135KB

    Additions/Fixes/Changes

    ADDITION - Camera shake action added

    FIX- Smooth zoom action didn't display correct information in event editor

    FIX - Switching smoothly to a camera that is following an object was jerky

    CHANGE - Transitions are now smoothed out more

    As you can see, the camera shake action has been added. This action gives you options for magnitude, duration, dropoff, and smoothness(heh).

    If you downloaded the first version of this, I highly recommend that you download the new one.

  • really useful! I had to do everything you included in here for epicopter's camera by hand...

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Nice, but yeah that layer rotation thing is a bit awkward.

    It might make for a nice effect, but it really screws up your direction.

  • Hmm... It's really weird when I try it with my game, because when I start up a layout, there's a white screen. How odd.

  • Thanks again for the comments, guys.

    Hmm... It's really weird when I try it with my game, because when I start up a layout, there's a white screen. How odd.

    What version of Construct are you using? That might have something to with it.

  • 0.99.5, pretty much.

  • Strange. What kind of events from the plugin are you using? If you don't mind me seeing the CAP, you can PM it to me and I can try and figure out what the problem is.

    Time for a new update for this plugin:

    Advanced Camera Plugin - v0.6b

    Download Now(with example) - 135KB

    Additions/Fixes/Changes

    ADDITION - Add layer rotation exception action added. Using this action you can specify layers, by name or number, to add to a list of layers which won't be rotated. This is helpful if you want to rotate the camera but don't want things such as the HUD rotated as well.

    FIX - Conditions from the plugin now show the plugin's icon before them.

    This version comes with an example updated to take advantage of the new "Add layer rotation exception" action to keep the layer that the instructions are on from rotating. The action for this is in the "NonCamera" event sheet in the 1st event.

    As usual be sure to report any bugs you find.

  • The cap is rather big, but I'm pretty much only using three events, mainly just creating the camera and getting it fixed to the player. However, I should note that the screen size is just 320x240.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)