linkman2004's Forum Posts

  • I'd suggest reinstalling the plugin completely. Just copy the "Plugin" directory in the Sprite Button download into your Construct folder. That will place all the files in the correct locations. Otherwise, I don't know what to tell you. It works fine on my end. Let me know if you still have trouble after you try this.

  • How's the zoom limits?

    I've not had a chance to work on them yet. I haven't had as much time as I would like lately. Will see if I can find some time after work tomorrow.

  • I'll work on putting out a new build with zoom limits tomorrow.

  • You need to enable "3D layering" for the layer that your 3D boxes are on. This option is in the layer properties panel, which you can access by goin to the layers tab on the right side of the screen and clicking on the correct layer; the properties for the selected layer will be on the left.

  • I discovered a bug in the new zoom to fit feature, so I recommend downloading this immediately. It also has some small new features/fixes:

    MagiCam Plugin - v1.3b

    Download Now(with examples) - 155KB

    Additions/Fixes/Changes:

    [ADD] - Action for changing zoom margins along with action for toggling zoom to fit.

    [ADD] - Expressions for getting zoom margins.

    [ADD] - Expressions for getting scroll margins.

    [FIX] - Zoom to fit margins weren't maintaining the proper amount of padding between followed objects and the edge of the view.

    [FIX] - "Set scroll margins" action wasn't setting scroll margins correctly.

    [CHANGE] - Changed "Set margins" action to "Set scroll margins" to avoid confusion with zoom margins.

    This release also comes with a zoom to fit example in the examples folder, so I highly suggest that you check it out.

  • Just updated the MagiCam plugin with a zoom to fit feature. Check it out here.

    In case you're curious, the way I handle it in the plugin is that I first find which objects are the farthest left, right, up, and down, with the respective X/Y coordinates specified as:

    farLeft, farRight, farTop, forBottom[/code:3fhfk5h5]
    The formula for figuring out the zoom value is then:
    
    [code:3fhfk5h5]// Find the distance between the extreme horizontal and vertical positions
    SpaceX = abs(farLeft - farRight)
    SpaceY = abs(farTop - farBottom)
    
    // Calculate what the zoom needs to be on each axis to encompass all objects
    TempZoomX = WinWidth / (SpaceX + ((HorizontalMargin * 2) / (WinWidth / SpaceX))
    TempZoomY = WinHeight / (SpaceY + ((VerticalMargin * 2) / (WinHeight / SpaceY))
    
    // Find the smallest zoom value
    FinalZoom = min(TempZoomX, TempZoomY)
    
    // Set the zoom to the smallest zoom value
    ZoomX = FinalZoom
    ZoomY = FinalZoom[/code:3fhfk5h5]
  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I've got a new version here which contains a nifty new feature for everyone!

    MagiCam Plugin - v1.2b

    Download Now(with example) - 145KB

    Additions/Fixes/Changes:

    [ADD] - Zoom to fit option added to the "Setup following" action along with horizontal/vertical zoom margin parameters. This option will have the camera zoom in or out to keep all followed objects on the screen at the same time while maintaining padding between the outer most objects and the edge of the view. Follow weights are ignored when this option is enabled.

    Be sure to download this version and check it out. As always, report any bugs you come across.

  • That's one of the things that I've been working to add to the MagiCam plugin. I'll look into finishing it up soon.

  • Moved to Help & Support using Construct.

  • Took a little longer than it should have, but here's the newest version!

    MagiCam Plugin - v1.1b

    Download Now(with example) - 145KB

    Additions/Fixes/Changes:

    [ADD] - There's now a post-alignment after the post-switch pause with grid scrolling. This prevents sudden camera shifts when coming out of a grid scroll.

    [FIX] - Camera would shift a few pixels upon coming out of a rightward or downward grid scroll with integer precision enabled.

    [FIX] - "Moving" was misspelled as "Moveing" in the "While motion in progress" condition.

    As always, be sure to leave feedback and let me know about any bugs!

  • One other improvement I can see for this would be to set it up so that you can select audio channels that don't pause when you have the "Pause During Scrolling" option enabled. That way things like music or certain ambient sounds don't get halted briefly during the grid scroll switch while the rest of the game does. Would something like that be possible?

    Even if it isn't, this is still an incredible plugin. Thanks!

    Thanks!

    The sound issue isn't something I can be changed through the the MagiCam plugin, but rather something that would have to be changed in the XAudio2 plugin. However, if your game's timescale never changes from 1, you can just untick the "Timescale audio" box in the XAudio2 properties as a workaround.

  • You do not have permission to view this post

  • The only way to parse XML files at the moment is to do it yourself -- as I did -- using the "Text Manipulator" object or something along those lines. None of my parsers were full featured, however -- just basic parsing features.

    I've been meaning to make an XML parsing plugin at some point, but I don't have much time these days. I might start one after the next MagiCam release, but we'll see.

  • Man, I can't believe it's been three years already. Construct is what inspired me to learn programming, something I never saw myself doing otherwise.

    Thanks to all the devs for the hard work they've put in to this!

  • You shouldn't have any problems. Smaller bug-fix releases like 99.96 generally don't have any compatibility issues. Just make sure to save a backup of your project before you save over the original in 99.96.