Spriter/C2 - (9-16-2019 - bug fix)

From the Asset Store
Rotate & Animation for 16 Direction & Mouse Direction
  • lucid

    To which ever is making the Spriter Plugin for C2. I have a request based on technical review over C2 and Open/WebGL.

    I am asking that the entire image object structure be done. After having read recently to Ashley's statement in gagillion zillion download thread. Ashley mentioned that each game object even if using the same visual image is in fact a different image and will result in an additional draw call in WebGL.

    After having done some research I can confirm that the more Objects in the game the more heavier the OpenGL drawing system is tasked in regards to the draw call. Having done some tests I found out that preview C2 tests is that preview never uses an image atlas. I also found that an exported game will use an image atlas. This results that with carefull design that our games can have better performance when exporter.

    Why is this important. because on mobile devices we have very limited number of Draw calls to use. The iPhone should limit to 25apx, iPad 100, of course newer devices probably 150 to 200 and PC I can imagine around 500 or so. But this isn't a request for PC's.

    Complicated Spriter entities can use many different parts. To show that the Basic_Platformer_object has 45 Objects. This means that alone with no other objects on the screen that spriter object is going to use 45 draw calls in Preview and Export.

    If i'm target a mobile device where I have say about 100 draw calls that Spriter object is going to use almost half my entire draw limit if I want to maintain GPU performance.

    If Spriter Plugin could instead use 1 Sprite Object, but instance itself, use frames and animations for the graphics then we could get a Spriter object to reduce the number of draw calls. Of course there is still layering and all of that, but this would offer a much needed performance assistance for mobile devices in C2 games.

  • everyone :

    I am newbie , I have a test of spriter and a capx of construct 2. But when preview I dont see anything. What did I do wrong ?

    In test, I dont have any bone for sure.

    If you have a tuttorial for that , pls show me how to use spriter and import it in construct without error. Thank you for it.

    Sorry , my english not well :"(

  • another question!

    i am using scml files for my pick ups as well (coins,power ups etc).

    my game is starting to slow down the more coins i add(100+). the question is ,are spriter files "treated" the same way as normal sprites meaning when they are off screen they are not drawn or the computer has to calculate them even if they are off screen and thus the slowdown?

    what is the best way to use scml files performance wise ?

  • everyone :

    I am newbie , I have a test of spriter and a capx of construct 2. But when preview I dont see anything. What did I do wrong ?

    In test, I dont have any bone for sure.

    If you have a tuttorial for that , pls show me how to use spriter and import it in construct without error. Thank you for it.

    Sorry , my english not well :"(

    Did you watch the tutorials in the tutorial section here?

    https://www.scirra.com/tutorials/827/reimporting-or-updating-a-spriter-file-in-your-construct2-project

    1) You must save out both a scml and scon of the same name from Spriter into the same Spriter project folder.

    2) both "other file actions/custom save options" options are both turned ON. before you save your scon and scml file from Spriter.

    3) Drag in only the .scml file into the canvas in C2 and the .scon should be imported as well automatically.

    4) Watch the videos carefully and copy what I do. If that fails, email me at mike AT brashmonkey.com and I'll try to help further.

    cheers,

    Mike at BrashMonkey

  • Hello Brashmonkey,

    any chance we can get a flash behaviour for spriter animations like the one which is already implemented in construct 2? Its a neat effect to make a characters flash after they took damage.

    Thank you

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • another question!

    i am using scml files for my pick ups as well (coins,power ups etc).

    my game is starting to slow down the more coins i add(100+). the question is ,are spriter files "treated" the same way as normal sprites meaning when they are off screen they are not drawn or the computer has to calculate them even if they are off screen and thus the slowdown?

    what is the best way to use scml files performance wise ?

    No matter how optimized spriter playback (or any modular/bone animation system) becomes, I'd always opt to "bake out" animations of small items like coins(...especially where there could be hundreds in the level or on-screen...) To sequential png images and then just use normal C2 Sprites for those objects. Its not the sprite drawing that will kill your frame rate, think of all the tweening math going on, per sprite, per bone, per object.

    That asside, Like I mentioned in a previous post somewhere, we do have plans for some very nice tricks/features on the spriter side to help game makers have more choices and optimizations per animated object on the screen...but that will almost surely not happen until after the initial release of Spriter Pro 1.0

    cheers,

    Mike at BrashMonkey

  • thank you for your invaluable info.

    do you have any advice for the slope angle as well? what would you do on situation like that?

  • Allchix

    if you use fade behavior on your scml spriter character it works so i guess flash behavior would work as well.

  • thank you for your invaluable info.

    do you have any advice for the slope angle as well? what would you do on situation like that?

    I bind all my spriter characters to a collision rectangle. Make a separate sprite that is always invisible. You control this sprite. Your spriter character is pinned to it.

    This gives you full benefit of using spriter, but also better collision control.

    -------------

    Join me as I develop Live! : http://steamcommunity.com/groups/Inde_Game_Dev

  • Roccinio, Tylermon is right. Eventually you'll be able to designate a universal bounding box for Spriter objects right within Spriter...but until then the best way is definately to control a nice clean C2 rectangluar sprite and pin the spriter object to it, either with the pin behavior or with an event.

    cheers,

    Mike at BrashMonkey

  • Yeah , it's working now. Thank for your support and tutorials.

  • lucid

    Hi, can you guys please implement the support to "minify" script ? My simple mobile game js file is more than 1MB already. Hopefully this is implemented soon.

  • maybe i did not understand your answer or you did not understand my question.

    of course i use a rectangle for my scml animation that i have every tick on top of it.this is the most basic stuff out there.

    my problem is that i have created a tilemap set that has slopes as well.so when my box is ascending the slope then the bottom right corner of the renctagle (if i am going to the right) touches the slope(and the rest of the box is in the air) so my player shows like floating in the air.bounding box is only good if is on a flat surface.

    is there a way to rotate a few degrees the scml animation during runtime when the bounding's box corner touches the slope?

    i could post here a capx with your basic platformer pack character but i dont know if it freely available to all so i wont.

    please advise because this is holding me back since every enemy and the player as well look retarded moving up and down the slopes.

  • here is the first ever pic of my game !

    see what i mean about the rectangle and the scml animation?

  • lucid how can I import a char with character maps, because I impor my .scml and my .scon, but only with the basic images and dont import the character map images.

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