Jump to content

Get Frame in construct2


blackant

Recommended Posts

To my knowledge you would go my the number of the frame.  You'd have to count them in Spriter I think...likely starting from zero. There's no way to name key-frames in Spriter.

 

It sounds like you should be using "Triggers"



In the Spriter object in C2, you'd use the event "on event triggered" and type the name of the event trigger you created in Spriter.

 

Cheers

Link to comment
Share on other sites

it's completly different the way the frame are computed in spriter are in milliseconds, right?

 

i made a test, and by chance i succesfully get my frame by dividing by 100 compared to spriter frame number

so a frame at 1000 in spriter looks to be in frame 10 in construct.

 

maybe just a luck on this spot ^^

Link to comment
Share on other sites

What you are referring to in Spriter are not frames, they are fractions of a second for timing... specifically, thousandths of a second. 1000 is equal to one full second.  Spriter animations are not divided into frames, they are divided into actual units of time... Whatever platform is playing back the Spriter animation should play them back at the best/smoothest FPS it can handle, but the timing should remain the same... 500 in Spriter is 500 milliseconds, in other words, one half of one second.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...