Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: Uttpd on July 13, 2012, 10:08:00 PM

Title: [Solved]Access Script function/ variable
Post by: Uttpd on July 13, 2012, 10:08:00 PM
Need to alter a variable on a script
Been toying with the "Send Message" action but cannot find/ access the function I need

In concrete:
trying to access the "Clip frames per second" Float value on a 2dToolkit sprite animation, so I can control the animation speed.






Title: Re: Access Script function/ variable
Post by: jeanfabre on July 16, 2012, 04:04:20 AM
Hi,

 For this, you'll need custom actions, that will be easier.

 tell me if the action I attached to this script si working for you, I till then push it to the 2d toolkit package.


Bye,

 Jean
Title: Re: Access Script function/ variable
Post by: Uttpd on July 16, 2012, 11:14:10 AM
yes it works  ;D brilliant

The clip Frame Rate could be an option in the "2dToolkit Play Animation" Action.
I don't foresee any situation where this would be needed without the animation playing action (but donĀ“t take my word on it)

thanks
Title: Re: [Solved]Access Script function/ variable
Post by: jeanfabre on July 17, 2012, 04:30:45 AM
Hi,

Yes probably, while I am really always trying to cut down action sinto their bear minimum so that they are reusable, it would be a good case, I will update that ( when I'll check for the next stable release of 2d toolkit)

 if you have other whishes for actions, let me know, There is still a  lot to cover!

bye,

 Jean