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

This forum is currently in read-only mode.
From the Asset Store
Set of 21 Food plus 6 boards, for different kind of games
  • Wow, this plugin is awesome and really simple to use. One question with the follow camera though...is there a way to offset it on the Y axis? I'd like my character to be near the bottom of the screen rather than in the center. Thanks!

  • Wow, this plugin is awesome and really simple to use. One question with the follow camera though...is there a way to offset it on the Y axis? I'd like my character to be near the bottom of the screen rather than in the center. Thanks!

    Thanks!

    By setting the offset angle to 270, the camera would be offset upwards, which should be the effect you're looking for.

  • Thats exactly what i was looking for. Not sure how i missed it...guess i was looking for an x,y offset option. Thanks a lot!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • this is a great plugin i must admit. but i didn`t completely understand what the angle and the other offset works in x,y space. can you help with the offset system of your camera?

    and i couldn`t find a manual is there one?

  • bariscigal - Thanks. Here's a little diagram I whipped up to show how the offset system works:

    <img src="http://dl.getdropbox.com/u/917406/diagram.png">

    How this works is that, given an offset angle, the camera will be displaced from the followed object at the given angle to a point X pixels out from the object(X being the offset distance). So given an angle of 42 degrees at a distance of 50 pixels, the relative X and Y positions of the camera from the followed object would be:

    X = 37.16

    Y = 33.46

    If you want to set the offset to a specific X and Y offset, you can use the following method:

    Offset distance = distance(0, 0, RX, RY)

    Offset angle = angle(0, 0, RX, RY)

    Where RX is the relative X value of the camera from the followed object, and RY is the relative Y value.

    Hope that clears things up.

  • I've setup my camera similar to the area example .cap you posted.

    Although when I 'reset' my layout, the camera stops working?

  • I've setup my camera similar to the area example .cap you posted.

    Although when I 'reset' my layout, the camera stops working?

    Would you mind posting a CAP with the problem so I can take a look at it? I couldn't reproduce it.

  • Hi linkman, I'd love to try your camera plug-in but I just get a 628byte broken zip archive whenever I download any version of your Advanced Camera plug-in. Maybe because I'm over here in the Land of the Morning Calm (Korea).

    Anyone else having this problem?

  • Mulkaccino - That's weird. I archived the plugin in a 7zip file, so maybe you can try that:

    7Zip Advanced Camera Archive

    If you don't have 7zip, I can try getting something that will allow me to compile a RAR file.

  • New version to hopefully alleviate some problems!

    Advanced Camera Plugin - v0.81b

    Download Now(with example) - 149KB

    Additions/Fixes/Changes

    ADDITION - Two debug actions: Delete All Cameras and Force Grid Area. These actions can be found under the "Z-DEBUG" section.

    The "Delete All Cameras" function does exactly as it says -- it deletes all cameras. The only place this is useful is if all of the old cameras aren't being deleted when the game is reset. If you find that your cameras are no longer working and the number of cameras goes up everytime you restart the game or go to a new level, use this action before switching. Or -- this is the better thing to do -- you can create a new AdvancedCamera object and switch all of the actions involving the original camera to the new camera object.

    NOTE: This bug seems to be due to faulty CAP files rather than the plugin.

    The second function, "Force Grid Area", is a temporary workaround for a bug in the grid scrolling system. If you "teleport" the grid object to another part of the layout -- for example, using "Set position", it is recommended that you use this action immediately after. Again, this is just a temporary workaround -- I'm working on actually fixing the bug -- but if you "teleport" the grid object somewhere and the camera stops working, you should use this action.

  • Hi linkman, thanks for your quick reply. I sent you a PM. Looks like my DNS doesn't like getdropbox

  • wow, thanks Linkman that update is fantastic!

    The camera works insanely well now!

  • Hey, I'm trying to use this plugin for a kind of movement where you change the direction the character faces with the left and right keys, then go backwards or forwards with the up and down. I want the camera to always be looking in the same direction as the player, so to speak, in other words always being at the same angle as the player. Can't seem to figure it out. Any thoughts?

    http://dl.getdropbox.com/u/1378330/adva ... camera.cap

    ^^ There's my attempt at it, but it doesn't work at all...

  • Mulkaccino - I sent you a reply with a link to the plugin uploaded elsewhere. Hope it works for you.

    - Glad it's working now.

    cow_trix - Two things about your CAP:

    1. You need to enable unbounded scrolling in the layer properties, otherwise the screen can't rotate beyond the bounds of the layout.

    2. Instead of setting the layer angle to "Sprite.Angle", you should set it to "360 - Sprite.Angle".

    Link to fixed CAP

    Hope that helps.

  • Hey, cool plugin, but i seem to have some problem, is the plugin supposed to act only after an event is true?

    like i was testing a zoom system with wheel up and wheel down, i set up different zoomkeys

    like global 1 is zoom 100

    like global 2 is zoom 200

    like global 3 is zoom 300

    but the system only reacts when global is 4 , or between zoomkeys 4 and 6 , 5 will execute the zoom

    is this a bug?

    also tried an rts camera, when mouse close to edge move to position, only executed when goiing back from the position, so when a true is falsified, it executes.

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