lucid's Forum Posts

  • lucid

    I created the animation of a character with two versions, one with normal images and another with images in the normal map color scale. I created two separate scml files with the same animations, but I already explained, one with animation images and another as a mask for the nomal map. Using another test sprite, static png tested the normal map effect on C2 and works perfentiously. But by applying the same effect to the scml file, it does not work. How can I solve this problem?

    Subscribe to Construct videos now

    I responded via private message on Facebook.

    I was wondering if Spriter is able to base animations off of events yet? Fro example have a character aim at the mouse pointer.

    es, the Override Animation actions will let you override a specific property, or use 2 bone IK to an xy target on a two bone pair.

  • ffman22 sorry I thought I had already replied to this. It seems to be working for me.

    The quick test I did was:

    Every Tick - Set current time in animation to unlerp(viewportLeft(0),ViewportRight(0),Mouse.X(0)) ratio of total length.

    Then the left side of the screen is the beginning of the animation and the right side of the screen is the end, and wherever your mouse is in between is what the animation should play back at.

  • 2/26/2017

    • Fixed a bug where overrides would remain stuck even after stopping the override action.
  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • hi. Sorry if my reply is too late to help. You should be able to export project to new size from the File menu, which will resize the sprites automatically (though not with the same quality as your manual resize), and then replace the files in the new project folder with your manually resized sprites.

  • hello

    Have you set the animation bounding box for your animations in Spriter? (We only recently added this to our tutorial)

    Saving it after doing this will give the plugin the bounding box information it needs.

  • Probably not in the short term , but I will keep it in mind for a future update.

    new plugin version:

    2/4/2017

    • Added action to 'find spriter object' from it's corresponding c2 object, and an expression to retrieve the 'foundObject's name. (useful for testing conditions on collision boxes and sprites, and then retrieving a Spriter variable for that object)
    • Fixed a bug that would cause an error when using action points
    • Fixed a bug that sometimes prevented objects (sprites, boxes, etc) from updating
  • I purchased Spriter 9. Can I upgrade to the latest release? I downloaded the current stable release "r10", but the zip file has the word 'free' in it. Am I eligible for upgrade?

    Thanks

    ou can. The free version and the pro version use the same exe. If you already have an older version of it activated on your PC, it should be activated already when you install the new version. If not, use the same serial key you had before.

  • Hi, thanks for the recent updates.

    I have a problem with my SCML object disappearing as soon as it gets outside of layout (during a layout zoom-in). To be more clear, it's the small scml box object which gets out of layout bounds, but my whole (much bigger) object which disappears, so it is very visible.

    Is there any solution to this?

    Thanks a lot!

    Have you set the animation bounding box for your animations in Spriter? (We only recently added this to our tutorial)

    Saving it after doing this will give the plugin the bounding box information it needs.

  • 12/26/2016 Download new version

    • Fixed a bug that would cause a javascript error when using the transitional old style version of the plugin (doesn't apply to most. If you have no idea what this means, it probably didn't/won't affect you)
    • Fixed a bug that would cause a javascript error when attempting to start a layout where scml objects had no scon or scml file set.

    BBaller1337 - so are you saying if scml returned negative width when it was set to mirror that would solve our issues? Or is it something more. If that's it, I'll see what I can do - I need to make sure that there aren't any unforeseen issues with changing that, but nothing immediately comes to mind.

  • Awesome. Thanks for the info. I was wondering how much of a difference it'd make in real world examples.

  • Another new version, everyone! This one has an important optimization that may help some of your games:

    Download new plugin version

    12/22/2016

    • Fixed a bug that caused multiple instances to each send an ajax request for the same file until the first one was complete. This was bypassing an important optimization and the fix should result in less downloading and faster initial startup for games that have multiple instances of the same object

    thanks terransage

    BBaller1337 I will see about updating the main plugin help page in the near future with more detail. But here's answers to your specific questions:

    x and y is the position of the scml object itself. This would correspond with where the gridlines meet in Spriter.

    objectx, and objecty are the positions of the individual sprites, action points, boxes, or bones within the animation.

    BBox___ returns the box for the entire scml object. You can preset the bounding boxes in Spriter using the bounding box icon in Spriter located in the animation list widget. Choose 'calculate'. You should always do this when using direct drawing mode as well to ensure the plugin knows when the object goes off screen.

    If you wish to animate volume and panning changes in Spriter, use the

    'on sound volume/panning change triggered' conditions in the plugin and the soundVolume/soundPanning expressions to set the volume in the audio plugin. If you use the triggeredSoundTag expression for both there shouldn't be an issue with multiple sounds playing.

  • lucid

    Is there a way to apply shaders to specific parts of objects when using direct drawing mode?

    Unfortunately no. That's one of the tradeoffs of direct mode. As far as I can tell it wouldn't be possible to support multiple effects like that with C2's plugin architecture.

  • New plugin version!

    • added 'Set ignore global time scale' action.
    • overrides now work even when animation is paused.
    • fixed bug where overrides wouldn't work on sprites in self draw mode.
    • fixed bug where overrides wouldn't work properly during animation blends.
    • fixed a bug where image overrides wouldn't work in several situations.
    • fixed a bug where metadata wouldn't work after a layout restart.
    • fixed a bug where sounds and events would trigger every tick between instant keyframes.
    • fixed several issues with bounding boxes when resized and flipped.
    • added BBoxLeft, BBoxRight, BBoxTop, BBoxBottom expressions to retrieve the edges of the bounding box like default C2 sprites.
    • fixed a bug that would cause hybrid performance mode (self drawing, with some separate objects like collision boxes) to perform much more slowly than performance mode
    • fixed a bug that was preventing certain performance mode optimizations from working in some circumstances

    Hi everyone. I am currently using the old spriter plugin and would love to upgrade it to the new plugin version with "performance mode". I haven't done too many characters yet and I could easily delete the old ones and replace them. However, I have a big issue, the main character. A lot of logic has been implemented involving his movement pattern in connection with animation-triggers. is it possible to update the previous scml-object of my main character to the new scml in performance mode? if so, what would be the best way to do this?

    All help is greatly appreciated. <img src="{SMILIES_PATH}/icon_e_smile.gif" alt=":)" title="Smile">

    Hello , the steps required are here. (Do a control-F (find) in your browser and search for: 'To change' (without quotes) to quickly find the section : To change your existing project to use the new direct drawing mode)

    lucid, I've emailed you the CAPX files requested and some further details on the issue. Thanks for looking into this.

    The issue is fixed. Thank you.

    Hi,

    I wasn't too sure where to post this.

    I am using the Spriter plugin I found and downloaded it from here https://www.scirra.com/forum/viewtopic.php?t=75748&start=0

    For some reason I cannot get my sprite to show though. I can't see it in the Construct 2 editor and I can't see it when I run my game either. I followed the instructions on saving it in Spriter using the other save options and made a new event sheet and layout to place my Spriter objects, I have dragged and dropped the .SCML file on to my Spriter layout too. The only event I see in the event sheet is an 'Initialize' event.

    Hi, I responded to you a while back. Did you get my reply via email?

    Hello lucid it's me again and I think I've found a bug.

    To give you some background on what I would like to achieve.

    I would like to manipulate the angle of a single bone, this would make it possible for me to set the angle of a weapon accordingly to the mouse pointer position.

    I've done some smaller tests as you can see in the image below and I couldn't get it to work.

    I did use your example capx and tried to set the angle of the pistol but it didn't work at all.

    I'm not sure if this is an issue related to the new self-drawing method but the "Override ..." doesn't seem to work with the old method.

    This issue is pretty critical in terms of game development and currently slows down our progress.

    lucid I hope that you're able to fix or provide a workaround for this issue, thanks in advance!

    My test to override the pistol animation and set the angle to mouse pointer position.

    Edit: I'm using the latest version and ignored the error messages since the older version is returning a JS error while previewing.

    f the bug fix above doesn't work, it looks like you're using the C2 object names possibly? If so, make sure you use the original object names from Spriter before the specialized save and C2 import prepends the entity name. I added a note in the action about this. Please let me know if any of this fixes your issue.

    Hi. I've been playing around with spriter for my next project and and must say that it is really great. Character maps are so handy for me who likes to create tons of playable characters that shares the same animation. So thank you for this amazing tool <img src="{SMILIES_PATH}/icon_e_biggrin.gif" alt=":D" title="Very Happy">

    One question. I have an animated character and would like to add a hat to this character. Do I have to animate the hat to match the heads animation or can I just place the hat on keyframe 1 and then lock the hat sprite to the head and it just moves with the head which is already animated?

    I know that if I had used the bone tool I could just add it to the head bone but I didn't use bones for this character.

    EDIT: I've decided to start over and just build the character with bones instead which makes it so much easier.

    lad you got it working, and yes, it's much easier to do something like that with bones. Don't forget you can still animate the hat individually if you want it to slide a little on the head, but not detach.

    Hey lucid, how are you doing?

    So... to the point, I tried updating the scml plugin to version 7-9-16 from an older verison and it gave a probably not-very-helpful error (https://i.gyazo.com/dd9ec35330569c7afa6 ... 0d0684.png)

    I don't want the edittime error problem you had before but didn't see anything about it being fixed, and I also don't want to update to the new performance mode.

    So... is it safe to update to the latest plugin even if we were using an older version? Is there anything I should be concerned about? Trying to find out why an older version of a plugin doesn't work seems like a poor use of effort/time, but I also don't want to unknowingly incur some issues by upgrading (which I tested and SEEMS to work, but... I like to play it safe, haha).

    Thanks in advance.

    EDIT: Aaaand right after this I tried updating an animation (using the latest version of Spriter and the plugin) and got anotherr error

    Again, trying to decipher why this is happening seems like a futile task given how many variables there are, though I also can't afford to like, start over. Any ideas I should try or any specific info I can give to help get this sorted out?

    EDIT2:

    [quote:1feyqvdy]So... while the C2 implementation of Spriter has never really worked well for me, after updating Spriter to r9 and the SCML plugin to version 7-9 and later the latest version, it's straight stopped working.

    So I tried different versions of the plugins, looked for an older version of Spriter (to no avail), tried resaving the CAPX, tried deleting the old object in C2 and re-inserting it, tried creating a new Spriter project and importing the old one into it, tried inserting into the example CAPX you created (since it doesn't have as much going on), and finally, tried creating a new Spriter project and inserting it into the CAPX, which is the only thing that actually works, but I really don't want to have to recreate all my animations. (I tried an older animation and just dropping it straight into the project works fine, but it seems like trying to update anything basically bricks it.)

    Hi I'm sorry, that all sounds frustrating. I hadn't updated that version of the plugin from previously created caps. Please see if this new version fixes your issues. If not feel free to send me your capx to lucid@brashmonkey.com and I'll see what I can do.

  • Thank you both for the info. That makes things pretty simple.

  • I'm not sure if it's possible, but I'd like to allow the user to select screen resolutions from a list of resolutions supported on their hardware configuration. I know how to make a listbox and change the resolution, I just need to know how to get a list of supported (fullscreen) resolutions.