playMaker

Author Topic: [Solved]Access Script function/ variable  (Read 2850 times)

Uttpd

  • Junior Playmaker
  • **
  • Posts: 70
[Solved]Access Script function/ variable
« 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.






« Last Edit: July 16, 2012, 06:18:27 PM by Uttpd »

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Access Script function/ variable
« Reply #1 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

Uttpd

  • Junior Playmaker
  • **
  • Posts: 70
Re: Access Script function/ variable
« Reply #2 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

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: [Solved]Access Script function/ variable
« Reply #3 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