linkman2004's Recent Forum Activity

  • The sprite object has an action called "Load animation frame from file" which will load the specified image file and replace the current animation frame with it.

  • This is one of those tricky problems that doesn't have an easy fix. The physics behavior generally doesn't work well with other behaviors, working in an unexpected manner.

    Here's an example that mostly fixes it while still using the 8 directions behavior, with an explanation afterwards:

    Fix thingy

    What this is doing is making sure that all physics objects are constantly in motion, even if just a tiny amount. Two physics objects that are in a state of rest can't interact.

    Since the green object is being moved by another behavior, the physics behavior always considers it to be in a state of rest, thus no interaction will occur between it and any other physics object. To fix this, you must stimulate the objects yourself with a small amount of force to bring them out of that resting state, and thus, interact.

    Ultimately, it might be a better idea to try and create the movement you're needing solely with the physics behavior. While it might be tricky to get it working initially, it will probably prevent further headaches with this issue in the future.

    I hope this helps.

  • I decided not to slack off this time and got a much quicker turn around time upon feature request. Check it out!

    MagiCam Plugin - v1.41b

    Download Now(with examples) - 156KB

    Additions/Fixes/Changes:

    [ADD] - "Confine" parameter added to "Shake camera" action. This gives the option to either enable or disable the binding of the camera shaking to grid areas and the layout when "Bind to layout" is enabled.

    Not too big of an update, but there it is. As always be sure to leave comments and bug reports.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • To get XAudio2 to see the files, you need to put them into the "Files" folder instead of the "Music" folder. The specified folders for sound and music were never finished, as far as I'm aware.

  • I've finally got a new version up! Sorry it took so long... I've gotta stop playing MineCraft so much.

    MagiCam Plugin - v1.4b

    Download Now(with examples) - 156KB

    Additions/Fixes/Changes:

    [ADD] - Zoom limits can now be set for cameras through the "Set zoom limits" action. Default zoom limits are -1 for all values, which implies no limits.

    [FIX] - "Set zoom margins" action displayed wrong values in event editor.

    [CHANGE] - Pre-alignment and post-alignment actions for grid scrolling now take place before the after the pre-pause and before the post-pause, respectively.

    With any luck, there shouldn't be any problems. Be sure to let me know of any problems.

    This plugin is great! Actually, all your plugins . I translate them for a fan site (I've done 2, this ones next), it's a good way to try them. Good job!

    ps - would it be possible to add more bones to IK Solver 2?

    Thanks, man! I'm glad you're enjoying them enough to share them with others.

    Unfortunately, I can't seem to find any algorithms for IK supporting more than two bones, so I don't know if I'll be updating that plugin anytime soon. We'll see, though.

  • We need to see a CAP file before we can really help you with your problem. It's hard to see what's wrong without seeing it.

  • 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]
linkman2004's avatar

linkman2004

Member since 15 Jan, 2008

Twitter
linkman2004 has 1 followers

Trophy Case

  • 16-Year Club
  • Coach One of your tutorials has over 1,000 readers
  • Email Verified

Progress

18/44
How to earn trophies