playMaker

Author Topic: 2D toolkit Frame rate  (Read 3401 times)

sebaslive

  • Hero Member
  • *****
  • Posts: 572
    • Frame Tale Studios
2D toolkit Frame rate
« on: April 13, 2013, 04:14:14 PM »
I have the toolkit plugin and see the set animation frame rate but I have different frame rates in each clip in the lib so I am trying to achieve a faster run animation without it affecting the rest of the clips. I am not sure how to even make it know to change the frame rate when I press right or left but I know that is easier to find.
All my VR games use Steam VR Playmaker Toolkit: http://u3d.as/u20
And Oculus Touch Playmaker Toolkit: http://u3d.as/QT5


Follow me @sebasRez

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: 2D toolkit Frame rate
« Reply #1 on: April 15, 2013, 03:10:58 AM »
Hi,

 Have you tried with the Tk2dSetAnimationFrameRate action?

bye,

 Jean

sebaslive

  • Hero Member
  • *****
  • Posts: 572
    • Frame Tale Studios
Re: 2D toolkit Frame rate
« Reply #2 on: April 15, 2013, 03:22:14 AM »
Hey Jean, yes I have. I used the tutorial listed on the site on animation layers and that got it to work, but for sometimes the action does not change the frame rate. I have it set to change to 24 fps when i press right and 12 when it goes back to idle and it works most of the time but sometimes it stays on 12 fps... I see the actions while running the game and it shows that it should be on 24 but it didn't change. Not sure..
All my VR games use Steam VR Playmaker Toolkit: http://u3d.as/u20
And Oculus Touch Playmaker Toolkit: http://u3d.as/QT5


Follow me @sebasRez

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: 2D toolkit Frame rate
« Reply #3 on: April 18, 2013, 02:40:46 AM »
Hi,

 ok, yes, it behaves oddly, I tested it seems it's setting something internal and only applies on the next frame. it works if you set is everyframe, but that's lame... very odd indeed.

 I modified the play action anyway, it's better that way anyway ( attached to this thread), tell me if it works, I'll spread the changes if all is ok on your side.

bye.

 Jean

sebaslive

  • Hero Member
  • *****
  • Posts: 572
    • Frame Tale Studios
Re: 2D toolkit Frame rate
« Reply #4 on: April 18, 2013, 03:24:14 AM »
Thanks it worked great and the new fps also works really well. Since I am still new and going through all the tuts I am not really sure what the start time option is for but I will play with that too. Thanks!
All my VR games use Steam VR Playmaker Toolkit: http://u3d.as/u20
And Oculus Touch Playmaker Toolkit: http://u3d.as/QT5


Follow me @sebasRez

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: 2D toolkit Frame rate
« Reply #5 on: April 22, 2013, 01:02:05 AM »
Hi,

 start is the how far in the animation you want to start, so if you have a 10 sec animation, you can start at the 5th seconds if you want skipping the beginning.

bye,

 Jean