lucid's Forum Posts

  • volkiller730, I just tried it with C2 201 and it worked. The import process that should occur is fully on C2 side, so the first things I would check, is to try C2 using the default theme if you're not already using it, or to reinstall C2. Please let me know if either of these helps or not.

  • Thanks for the info, PSI

  • Thank you I'll look into this. I wonder if a recent C2 change caused this, as sounds were definitely working at one point.

  • josiascaignard if possible could you send me the non-sound playing capx at , so I can take a look, I should be able to see if it's a bug or help you out if it was a missing step.

    Sethmaster we're hoping to add that type of functionality to several parts of Spriter for organizational purposes, but I don't have an ETA for any of this just yet.

  • Hello MelVin, installing a new version of Spriter shouldn't reset your settings, but it sounds like your save options may not be set (as shown below). If resaving and reimporting the scon file doesn't fix the problem, please send me the relevant files I need to recreate the issue to and I'll take a look.

  • Sethmaster , I believe this is happening from the files loading at different speeds and starting animation playback as soon as the file is completely finished. For now the simplest way to take care of this is just to set one object's current time to the other's:

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • lucid - could you give a brief example of how to use randomized character maps to create variety in spawned enemies or is there already a tutorial?

    PSI, the new implementation will enable me to eventually make this process much more simple, but the way I would do it now is:

    • Create many character maps for different body parts. This could be clothing, separated down into character maps for alternate tops, and bottoms, and if you want to go even further, skin, eyes, additional layers of armour, etc. It's best to name them according to category. For example : top_redShirt, top_blackTunic, hand_bare, hand_glove, etc.
    • In C2, make arrays for the different parts and their names. For instance, an array called 'topArray' that contains the strings "top_redShirt" and "top_blackTunic", and another array called 'handArray', containing those names
    • On Object Creation (or whenever you want the randomness to occur) Append Character Map (topArray.at(floor(random(0,topArray.width))). This is just saying to choose a random index in the array, and apply the character map with that name.
    • Repeat this for as many categories as you created.

    Apologies if this has been posted before regarding the c2 plugin...

    When my character's animation is not looping, if it has finished and the animation is set to blend to the start of a different animation then the blend feature does not work - the 2nd animation just starts without any blending. I can work around it by making extra looping animations but it would be great if the plugin allowed blending from a finished non-looping animation. Let me know if you need a demo and I'll put one together - thanks!

    Colludium, this will be fixed with the updated implementation as well.

  • Thanks R0J0hound, that was very useful.

    I didn't realize that you could still affect the newly created objects from other top-level events, or that the function triggers didn't count as top-level events. Good to know.

  • Thanks for the responses everyone. I had never run into this before now.

    The situation was basically

    On Function "create everything"
        --loop
              --create several objects and set their initial private variables according to an algorithm
        --every tick 
              --call function "update everything" 
    
    On Function "update everything"  (used outside the "create everything" function as well)
        --several conditions here checking objects' private variables
              --perform actions on each object based on some algorithm involving each object's private variables[/code:gyfvteju]
    
    So using the 'wait 0 seconds' before the "update everything" in the first function was the cleanest workaround.
  • Hi everyone. I just wanted to make sure this was a bug (and not a known one) before I reported it. It seems pretty fundamental and like it would have been reported by now, but I couldn't find it with any of the search terms I tried.

    Basically, if you create an object you cannot perform any actions on it outside the event that created it (and it's subevents) until the next tick.

    This capx is a simple example.

    After creating the box the action to set it's scale to half size works since it's in the same event.

    The next 'every tick' takes place immediately afterward and sets the size back to normal and changes the angle, but it applies to every box except the one created in that tick.

    If you toggle on the 'Wait 0 seconds' action, it works as expected since it is no longer the same tick as the creation.

  • lucid

    So will this reference implementation handle the issues with 1000s of objects if using multiple instances of the same .scml file? Right now, I am using spriter files for destructible objects and we packed each .scml file with multiple entities and character maps so that we could randomize the obstacles easily. The problem is that with just 12 of these scml files in the layout at once, there are 800+ objects created and performance comes to a crawl for mobile devices. This makes it so that spriter becomes less and less useful for our project even though it makes the best animations and visuals we can produce. Are there any guidelines for how many entities to have per scml file or if there are better ways to handle this setup?

    The short version is that you should keep entities in separate files if you don't plan to use the Set Entity action in C2. The version of the plugin that will come after the reference implementation will address the issue of multiple objects being created. This was actually a design decision between Ashley and I to allow control over individual character parts. Now that the plugin has been out for a long time and we've gotten feedback, and seen how often the feature is used versus how often it causes performance issues, it seems these situations are the exception rather than the rule. I'll get into it more once I'm working on the new version of the plugin, but at worst it should be possible to choose all separate objects, or no separate objects (all drawn by the single plugin), but I think it might be possible (will have to think more on it, and discuss with Ashley) to specify in Spriter which objects you want separate and have the importer and plugin only generate separate objects for those and draw the rest itself. The difficult part of that last possibility is drawing several body parts, adding a separate c2 object, and then drawing several body parts on top of those. I have a possible solution, but I'd like to test how well it works.

    Are there any plans to add ways that Construct can "talk" to Spriter? For example, being able to rotate a characters head towards the cursor would be great.

    Yes, I plan to expand in this area quite a bit. I can't get into it now, but again the reference implementation will be the first step to implementing these new features.

    Spriter's Kickstarter Campaign! (7:55 min)

    https://m.youtube.com/watch?v=MPVR41j9LXE

    Freeform image deformation, Skinning and Procedual animation are already integrated?

    We're quite a bit behind schedule, but I say 2015 is a safe bet for both to be in Spriter and the C2 plugin. I'm giving myself quite a bit of leeway here so hopefully closer to mid 2015 than later.

    Just to add to JamesXXXYZ - We've been mucking around with the FID tools in Spriter Pro which seems like it works fine (still tagged as experimental obviously) but when it gets imported in to C2 it kicks up this error:

    Javascript error!
    TypeError: tweenedBones[i] is null
    http://localhost:50000/Spriter_plugin.js, line 1617 (col 6)[/code:1gyttvqm]
    
    Assuming this is just because the plugin doesn't support the experimental features.
    
    AHHHHH SO LOOKING FORWARD TO IT WORKING!
    orrect.  The tools will be much more powerful and easier to use once they're complete in Spriter. 

    I am a start up business and the only employee and manager and co executive of my business and would love to buy construct 2 and your spriter program soon. My company is called Falconsoft Industries, as I intend to make it a company that will one day be the next largest and richest company in game design, but construct 2 is not the only tool I will be working with, for professional reasons such as unity provides 3d design easy for programmers that I will hire one day. Also truefalcon is just my name on development software forums. <img src="{SMILIES_PATH}/icon_e_geek.gif" alt=":geek:" title="Geek">

    here is a community developerd Unity conversion tool that converts Spriter animations to native Unity animations called Spriter2Unity (https://github.com/bonus2113/Spriter2Unity). The reference implementation will also make it trivial to add Spriter support in any language or on any platform.

  • Somebody, I will work on it after the reference implementation, which I still can't give an estimate on just yet. The new version of the plugin will be the perfect time to make such changes, so I'll discuss a few possibilities with Ashley at that time. The reference implementation will lay the groundwork for a lot of new plugin features as well.

  • Hi It sounds like you don't have the custom save options required for C2 projects. You only have to set this once, but open up the 'File|Other File Actions...|Custom Save Options' dialog, and check all three boxes under 'Additional Data for Authoring Tools':

    After that, just make sure you have both an scml and a scon version of your project saved. (just save twice, and choose 'scml' the first time, and 'scon' the second time for the file types.

    We will streamline this process in future versions, and there is a detailed tutorial on how to use the C2 plugin linked in my signature.

  • I gave spriter a go again, followed the instructions from the video and i'm getting a javascript error when first starting the game.

    Its a brand new scene with the greyguy example file .scml file being imported.

    Javascript Error!

    Uncaught Syntax Error: Unexpted token <

    line 1 (col 1)

    Which video? The tutorial from my signature?

    If you just drop the scml file into the layout, does C2 ask you where to import it, and create events (an 'On Initialized' event, with several actions)?

    What are the possibilities of an adobe after effects implementation? Currently planning a short film on Construct 2 but Spriter would be the perfect tool to have around AE.

    he reference implementation I'm working on will be the basis to expand to as many languages, platforms, tools, etc, as possible. After the reference implementation is complete I'll be focusing a significant portion of my time toward providing tools and support to developers working on porting the implementation. So it's definitely in the realm of possibility, but I wouldn't venture an ETA just yet.

  • justifun, currently:

    works: animation, collision boxes, action points, sound effect triggering, character maps, variables, events

    doesn't work yet: sub-entities

    Aside from that there's general improvements to the plugin for optimization and additional features, but it supports all Spriter features aside from sub-entities.