Jump to content


Photo

Sk2d: 2d Skeletal Animation System


  • Please log in to reply
80 replies to this topic

#51 Monstr Gaming

Monstr Gaming

    GMC Member

  • GMC Member
  • 428 posts
  • Version:GM:Studio

Posted 25 February 2012 - 05:59 AM

Soz if this has been answered (I don't read through the topic) but how would you flip the skeleton.

As if you entered image_xscale = -1 normally.

anyone? :(
*bump*
  • 0

86Jl3fn.png

 

youtube.png


#52 superx140

superx140

    GMC Member

  • GMC Member
  • 119 posts

Posted 03 April 2012 - 07:07 PM

Hi Drifter!

I've just found your program and I really think that it has a lot of potential. I think YOYO Games should buy it from you and integrate it with GameMaker Studio.
I haven't used your software that much yet - but by looking at the eksamples and the description it seems to be a time saver allowing you to create your animations visually instead of coding it. :)

When Gamemaker Studio comes out I'll only be focusing on making games for ios (and probably Android) - and i think a lot of serious gamemakers will do the same. Are you still developing on this program and are you planning on making an extension for Studio that will work on ios? (and is it even possible?) I really hope you do so.

For some time i've been looking for an extension letting you use vector graphichs, and your program let you do so with the polygon tool. I really think it would be usefull for ios games, where you don't have an unlimitted amount of VRam. As far as I know (corret me if I am wrong) polygons (shapes) takes up much lesser RAM than bitmaps, so it would really help you to make games with "big visuals" without using up all VRAM. It will also be great because it is independent on screen resolution making it look sharp even on the new iPad retina display even though it was made for the old resolution.

So my question is: Are you going to release a new version for GMS when it comes out? I really think it'll help a lot of people to make some greater mobile games :)



Btw. If you are going to make a new version, I also have some other suggestions:
- You should focus more on the polygon tool letting people create big levels using vector graphics - I'll need you to be able to move around whole polygons (not only a corner at a time) and group them (maybe this is already possible? I just couldn't find out), and you should be able to hide layers.
- It would also be nice if you make it possible to design those vector levels with the use of paralax scrolling inside sk2d. - right now it's possible to change the depth, so this would be a perfect addon.
- it would also be nice if you where able to save a picture of your level or object from sk2d, that you could use as a placeholder in GM when making rooms.
- If you make a GMS version it would be nice with some integration with box 2d. sk2d should give you the coordinates for the mask of your vector paintings and use them as Box2d masks.



I know my post is long and has a lot of suggestions, but I just really think that sk2d is the greatest piece of software I've seen for Game Maker ;) I hope my post was usefull.
  • 0

#53 Bisse

Bisse

    GMC Member

  • GMC Member
  • 37 posts

Posted 08 July 2012 - 11:12 AM

I have been trying to get this extension to work in GM:Studio - has anyone had any success with this?

It seems like nothing is happening when I make calls to the DLL. All functions seem to constantly return 0 - it seems like the connection to the DLL is completely lost.
  • 0

#54 falconfetus8

falconfetus8

    GMC Member

  • GMC Member
  • 38 posts
  • Version:Unknown

Posted 27 July 2012 - 02:23 AM

Hi, I really love this editor so far! Unfortunately, I can't seem to figure out the animation; I don't understand how to make a keyframe. I'm pressing the "create keyframe" button and then rotating a bone, but when I rewind it to see if it worked, it just snaps back to where it was originally and undoes what I just did. Clearly I need some sort of tutorial...or even just a video of someone else doing it. Could somebody please help me?
  • 0

#55 Drifter

Drifter

    GMC Member

  • GMC Member
  • 75 posts
  • Version:GM:Studio

Posted 28 July 2012 - 03:06 PM

Umm, hello Drifter.
First of all I'd like to thank you for creating such great extension as Sk2d - It's so much easier now to create my characters. But I also have one major question - it the future will it be possible to change sprites of a arm for example, while you in "Animation Mode"? Like having a different poses for arm and then change them while animating stuff..
It's pretty hard to explain due my poor English knowlege, but I hope you get the point.. =)


In the next update you will be able the animate all sprite & polygon image attributes with the exception of the sprite resource itself.

Soz if this has been answered (I don't read through the topic) but how would you flip the skeleton.

As if you entered image_xscale = -1 normally.

do you mean in the editor or in the game?
you can render the image flip or mirrored in game using the function skx_draw_images_transformed(sk,mirrored,flipped). just set mirrored to true(flipped draws the image upside down).

In the Editor there is a scale skeleton function in the edit menu.

I have been trying to get this extension to work in GM:Studio - has anyone had any success with this?

It seems like nothing is happening when I make calls to the DLL. All functions seem to constantly return 0 - it seems like the connection to the DLL is completely lost.

I don't have GM:Studio yet, so I can't help. I doubt that it will support extensions with dll's, since none of the target platforms probably don't support that executable format. Even if GM:Studio supports loading binary modules I would have to create a a version for that system.

Hi, I really love this editor so far! Unfortunately, I can't seem to figure out the animation; I don't understand how to make a keyframe. I'm pressing the "create keyframe" button and then rotating a bone, but when I rewind it to see if it worked, it just snaps back to where it was originally and undoes what I just did. Clearly I need some sort of tutorial...or even just a video of someone else doing it. Could somebody please help me?


Rotate first then set the keyframe. The next version will have an auto-keyframe feature. I am kicking myself for not having thought of that feature before now.
  • 3

Posted Image Posted Image
-----------------------
SK2D: Skeletal Animation System


#56 falconfetus8

falconfetus8

    GMC Member

  • GMC Member
  • 38 posts
  • Version:Unknown

Posted 28 July 2012 - 03:41 PM

Rotate first then set the keyframe. The next version will have an auto-keyframe feature. I am kicking myself for not having thought of that feature before now.


Thank you very much! However, I would recommend that you put that advice inside the program so that people don't have to come to this thread to find out :)

Now, I have another issue. When I use the skx_draw_images() function, it returns the following error:

ERROR in
action number 1
of Draw Event
for object oPlayerAnimation:

Trying to draw non-existing sprite.

Here is the information for my object:
Create event:
skeleton = sk_skeleton_load("skeletons/player.sk2d",1);

if(skeleton = SK_NULL){
    show_error("No File",1);
    exit;
    }

sk_animation_loop_ext(skeleton,"run",0,1);

step event:
sk_animations_advance(skeleton);

end step:
sk_skeleton_set_position(skeleton,x,y,image_angle);

draw event:
skx_draw_images(skeleton);

As you can see, I've followed the example in the help file exactly, yet I still get an error. I've looked at your example .gmk files, and they run pefectly, so the problem must be on my end. Am I missing anything important?
  • 1

#57 Drifter

Drifter

    GMC Member

  • GMC Member
  • 75 posts
  • Version:GM:Studio

Posted 28 July 2012 - 05:26 PM

use skx_skeleton_load instead. sk_skeleton_load loads the skeleton but not the sprites(sk_skeleton_load is only for backwards compatibility).
  • 0

Posted Image Posted Image
-----------------------
SK2D: Skeletal Animation System


#58 falconfetus8

falconfetus8

    GMC Member

  • GMC Member
  • 38 posts
  • Version:Unknown

Posted 28 July 2012 - 06:14 PM

use skx_skeleton_load instead. sk_skeleton_load loads the skeleton but not the sprites(sk_skeleton_load is only for backwards compatibility).


Thank you very much for the help, but now I'm getting a different error. "External exception E06D7363".

I did some quick sleuthing using the show_message() trick, and I can confirm that it is the "skx_skeleton_load()" function that is causing the error. It can't be my .sk2D file that's the problem, because when I replaced my .sk2D file with your Blob2.sk2d, I got the same error. I tried moving the SK2D.dll file to my game's folder(I'm somewhat new to Game Maker's .dll system, so I'm not sure if they have to be in any specific folder), and I still got the same error, so that can't be the problem either.

Unfortunately, that's all that I can deduce about the problem for now. Once again, thank you for your help.
  • 0

#59 Drifter

Drifter

    GMC Member

  • GMC Member
  • 75 posts
  • Version:GM:Studio

Posted 28 July 2012 - 06:38 PM


use skx_skeleton_load instead. sk_skeleton_load loads the skeleton but not the sprites(sk_skeleton_load is only for backwards compatibility).


Thank you very much for the help, but now I'm getting a different error. "External exception E06D7363".

I did some quick sleuthing using the show_message() trick, and I can confirm that it is the "skx_skeleton_load()" function that is causing the error. It can't be my .sk2D file that's the problem, because when I replaced my .sk2D file with your Blob2.sk2d, I got the same error. I tried moving the SK2D.dll file to my game's folder(I'm somewhat new to Game Maker's .dll system, so I'm not sure if they have to be in any specific folder), and I still got the same error, so that can't be the problem either.

Unfortunately, that's all that I can deduce about the problem for now. Once again, thank you for your help.


Where did you get this dll file? there is no dll file in the main sk2d zip file. it's not need, the gex file has the dll inside it.
  • 0

Posted Image Posted Image
-----------------------
SK2D: Skeletal Animation System


#60 falconfetus8

falconfetus8

    GMC Member

  • GMC Member
  • 38 posts
  • Version:Unknown

Posted 28 July 2012 - 06:57 PM

Where did you get this dll file? there is no dll file in the main sk2d zip file. it's not need, the gex file has the dll inside it.


It was in the install folder for the editor. Looking back, I now realize it was pretty silly of my to think that the .dll would do anything, as the editor and the extension are two separate things entirely. My bad.

All confusion aside, do you know what could be causing the error? Does the error code look familiar to you at all?
  • 0

#61 falconfetus8

falconfetus8

    GMC Member

  • GMC Member
  • 38 posts
  • Version:Unknown

Posted 13 August 2012 - 07:25 PM

I apologize for bumping/double posting, but I would really appreciate a response of some sort.
  • 0

#62 Drifter

Drifter

    GMC Member

  • GMC Member
  • 75 posts
  • Version:GM:Studio

Posted 16 August 2012 - 12:30 AM


Where did you get this dll file? there is no dll file in the main sk2d zip file. it's not need, the gex file has the dll inside it.


It was in the install folder for the editor. Looking back, I now realize it was pretty silly of my to think that the .dll would do anything, as the editor and the extension are two separate things entirely. My bad.

All confusion aside, do you know what could be causing the error? Does the error code look familiar to you at all?


I don't know. never seen any message like that. What version of GM are you using?
  • 0

Posted Image Posted Image
-----------------------
SK2D: Skeletal Animation System


#63 falconfetus8

falconfetus8

    GMC Member

  • GMC Member
  • 38 posts
  • Version:Unknown

Posted 16 August 2012 - 07:37 PM

I am using GM 8.1 standard. The fact that it's saying "external exception" leads me to believe that it is an issue with the extension. I'll look again to see if there's something on my end causing it(perhaps I passed an argument wrong or something? I'll have to check.), but I seriously doubt it.
  • 0

#64 Drifter

Drifter

    GMC Member

  • GMC Member
  • 75 posts
  • Version:GM:Studio

Posted 13 September 2012 - 11:46 PM

I am using GM 8.1 standard. The fact that it's saying "external exception" leads me to believe that it is an issue with the extension. I'll look again to see if there's something on my end causing it(perhaps I passed an argument wrong or something? I'll have to check.), but I seriously doubt it.


Can I see the code for the loading?
  • 0

Posted Image Posted Image
-----------------------
SK2D: Skeletal Animation System


#65 SG_9x

SG_9x

    GMC Member

  • New Member
  • 2 posts
  • Version:GM8

Posted 28 September 2012 - 07:33 PM

In the next update you will be able the animate all sprite & polygon image attributes with the exception of the sprite resource itself.


Well that just sounds awesome! When we can actually see this "next update"?
  • 0

#66 Dylan93

Dylan93

    GMC Member

  • GMC Member
  • 867 posts
  • Version:GM8

Posted 23 October 2012 - 09:49 AM

In the next update you will be able the animate all sprite & polygon image attributes with the exception of the sprite resource itself.


Well that just sounds awesome! When we can actually see this "next update"?


I want to know this as well, apart from that this can really use a documentation, the one currently provided is really basic, some things can be figured out by looking at the examples but still a nice documentation would be better, perhaps get someone to do it for you ?
  • 0


Posted Image


#67 Alvare

Alvare

    Allrounder

  • GMC Member
  • 1618 posts
  • Version:GM:Studio

Posted 23 October 2012 - 07:37 PM

Very cool program indeed. A must have now as i'm getting sick of those sprites.
But Drifter, is there a way to mirror the animation so that it is facing the other direction? (Sidescroller)
  • 0

:heidy:


#68 GS-games

GS-games

    Creative

  • GMC Member
  • 358 posts
  • Version:GM:Studio

Posted 25 October 2012 - 06:18 PM

Will it work on other devices than windows (when exporting from GM STUDIO to android for example)? Posted Image

Edited by GS-games, 28 October 2012 - 07:25 PM.

  • 0

Hi there!

Twitter: https://twitter.com/GabrielSandsted

Website (under development) gsgames.net: http://gsgames.net/ 

Facebook page: https://www.facebook.com/gsgames.net 

tx5PmL9.png


#69 Monstr Gaming

Monstr Gaming

    GMC Member

  • GMC Member
  • 428 posts
  • Version:GM:Studio

Posted 26 October 2012 - 06:16 PM

Very cool program indeed. A must have now as i'm getting sick of those sprites.
But Drifter, is there a way to mirror the animation so that it is facing the other direction? (Sidescroller)

Post 55
  • 1

86Jl3fn.png

 

youtube.png


#70 Alvare

Alvare

    Allrounder

  • GMC Member
  • 1618 posts
  • Version:GM:Studio

Posted 26 October 2012 - 11:42 PM


Very cool program indeed. A must have now as i'm getting sick of those sprites.
But Drifter, is there a way to mirror the animation so that it is facing the other direction? (Sidescroller)

Post 55

Thank you so much. Posted Image
I should have read trough the topic myself so 1+ for you.

Yep I got it. It has to replace the normal drawing in the draw event.
I'll see if I can find out more about transitions between the animations. Right now it resets and shows the noone pose for one sec. xD

This is the code I use for the movement test:

if keyboard_check(vk_right)
{
    facing=0
    if !(sk_animation_is_playing(Sk,"Walk"))
    {
        sk_animation_loop(Sk,"Walk");   
        DoSplits = false;
        sk_animations_advance(Sk);
    }
    sk_skeleton_set_position(Sk,x,y,0);
    x+=.6
}
if keyboard_check(vk_left)
{
    facing=1
    if !(sk_animation_is_playing(Sk,"Walk"))
    {
        sk_animation_loop(Sk,"Walk");   
        DoSplits = false;
        sk_animations_advance(Sk);
    }
    sk_skeleton_set_position(Sk,x,y,0);
    x-=.6
}
if !(keyboard_check(vk_right) or keyboard_check(vk_left)) && (sk_animation_is_playing(Sk,"Walk"))
{
    sk_animation_loop(Sk,"Standing");
    sk_animation_stop(Sk,"Walk");
    walking=false
}

Does anyone know what I should do?
I know the sk_animation_stop ruins it.

EDIT -
Fixed it.
All goes about this one: sk_animations_advance(Sk);

Edited by THE_GAME_EDITOR, 27 October 2012 - 12:18 AM.

  • 0

:heidy:


#71 Alvare

Alvare

    Allrounder

  • GMC Member
  • 1618 posts
  • Version:GM:Studio

Posted 27 October 2012 - 12:12 PM

When I resized the skeleton it got all messed up.
So I tried to drag the pieces back on the correct position but now when it's running in gamemaker it doesnt scale correctly.
It's not centered anymore.

Edited by THE_GAME_EDITOR, 28 October 2012 - 03:33 PM.

  • 0

:heidy:


#72 GS-games

GS-games

    Creative

  • GMC Member
  • 358 posts
  • Version:GM:Studio

Posted 28 October 2012 - 07:26 PM

Will it work on other devices than windows (when exporting from GM STUDIO to android for example)? Posted Image

Edited by GS-games, 28 October 2012 - 07:26 PM.

  • 0

Hi there!

Twitter: https://twitter.com/GabrielSandsted

Website (under development) gsgames.net: http://gsgames.net/ 

Facebook page: https://www.facebook.com/gsgames.net 

tx5PmL9.png


#73 NerdBox

NerdBox

    GMC Member

  • GMC Member
  • 5 posts
  • Version:None

Posted 18 December 2012 - 09:28 PM

Wow, this is great. Thank you!
  • 0

#74 Ruub

Ruub

    Finn The Human

  • GMC Member
  • 722 posts
  • Version:GM:Studio

Posted 27 January 2013 - 04:07 PM

Links are down :c
  • 0

#75 Drifter

Drifter

    GMC Member

  • GMC Member
  • 75 posts
  • Version:GM:Studio

Posted 30 January 2013 - 12:02 AM

Links are down :c


Work for me. Maybe a temporary outage.
  • 0

Posted Image Posted Image
-----------------------
SK2D: Skeletal Animation System


#76 Ruub

Ruub

    Finn The Human

  • GMC Member
  • 722 posts
  • Version:GM:Studio

Posted 31 January 2013 - 10:06 AM


Links are down :c


Work for me. Maybe a temporary outage.


yeah they work again :woot:

It's awesome, really awesome. THOUGH Studio doesn't work with extentions :yucky: :yucky: :yucky: correct me if I missed something :sweat:
I'd feel like I really want to use it xD Like the tentacle example, the bears, the disco, it's sweet and has so many possibities.

I would ask the same question as GS-games :) Are you interested in making this possible for Studio and export to HTML, Smartphones?

ps:
I really like it how you made this so open, with the open source xD the documentation, it sucks that people don't spam you about this nonstop :c
And I think I might have a chance to get this to mobile with the gm6 example, I mean, why not :@

Edited by Ruub, 31 January 2013 - 10:43 AM.

  • 0

#77 Regie02

Regie02

    GMC Member

  • New Member
  • 2 posts
  • Version:GM8.1

Posted 19 March 2013 - 09:41 PM

Is there a tutorial of some sort so I can learn to use this tool? for example, how to create an animation?


Edited by Regie02, 19 March 2013 - 10:02 PM.

  • 0

#78 1pietras

1pietras

    GMC Member

  • GMC Member
  • 9 posts

Posted 22 April 2013 - 07:24 PM

Is there anything like "sk_animation_speed", which changes speed of animation without changing the animation itself ?

If not, maybe you can add something like that Drifter ?


  • 0

#79 fligordavid

fligordavid

    GMC Member

  • New Member
  • 6 posts
  • Version:GM:Studio

Posted 09 January 2014 - 07:49 AM

Hello Drifter ,

 is there any way to make it work with gm studio ?  Sorry for bumping . 


  • 0

#80 pablo1517

pablo1517

    GMC Member

  • GMC Member
  • 388 posts

Posted 30 March 2014 - 11:01 PM

I really wish that the author would update this to work with GM: Studio :<


  • 1

If I helped then feel free to press this button rep_up.png under my post  ;)


#81 postpwn

postpwn

    GMC Member

  • New Member
  • 12 posts
  • Version:GM:Studio

Posted 18 October 2014 - 08:34 PM

There are so many wonderful-sounding extensions on this forum but most are either not available anymore or haven't been updated.

 

This is frustrating.


  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users