playMaker

Author Topic: function Update  (Read 3804 times)

Rabagast

  • Hero Member
  • *****
  • Posts: 683
    • Homepage
function Update
« on: July 16, 2013, 01:18:00 PM »
Hi!
I have a simple question.
In Javascript, I have function Start ()
and function Update (). I want to do something
in an Update function with Playmaker, f.eks.
to play animation. How can I do that?
Check out our homepage. http://www.walsberg.no
Or my personal game blog for news about my games. http://retro-tetro.walsberg.no

Rabagast

  • Hero Member
  • *****
  • Posts: 683
    • Homepage
Re: function Update
« Reply #1 on: July 17, 2013, 12:13:20 PM »
How can I really learn Unity and Playmaker if it's impossible to get some help?
Sorry, but I really need some help, before I give up.
It should be someone who always answer. I mean who work with support on playmaker.

And also another question about why animation is not looping.
I think I got one question there...a link...but it doesn't helped me.

Please, someone! I need help! :(
Check out our homepage. http://www.walsberg.no
Or my personal game blog for news about my games. http://retro-tetro.walsberg.no

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: function Update
« Reply #2 on: July 28, 2013, 12:19:44 PM »
Hi,

I think you are getting confused with many concepts between Unity and Playmaker. so let's cut your problem down.

in Playmaker, when you enter a state, actions set up in that state will execute on "start", the start of that state. BUT in Unity, "Start" means when a component starts working, for example when the game starts, or when you instantiate a GameObject at runtime. In Playmaker, This "Start", is always the first state with the global transition "START". you get this ba default when you create a new fsm.

now, within the currently running state ( the one in green), you also have the same concept, only applied to that running states, it's entered, it lives for a while and eventually is exited. This process applies to all actions that you have added to that state. Each actions will be informed that it can starts running, that it runs and that it stops running.

 BUT, some actions only need to perform a single action, and therefore only execute when entering the state. Some actions must run every frame ( on update), so they execute as long as the state is active.

 Does that help a bit understanding?

Could you explain what you are after? I will then be able to provide a working sample hopefully. Typically tho, you should go trhough all the screencast and learning materials you can find to get acquainted with all this, after few screencasts, you will definitly undertstand all these very important concepts, and be able to apply them to your specific needs.


http://www.hutonggames.com/tutorials_game_design_with_playmaker.php

bye,

 Jean


Rabagast

  • Hero Member
  • *****
  • Posts: 683
    • Homepage
Re: function Update
« Reply #3 on: July 30, 2013, 02:52:11 PM »
Hi!
Thanks for helping me! I'm very grateful for that!
You helping me in another post also. :)

Right now I'm just experimenting and learning. Following the tutorials.
But it is this animation I have problems with. And a good platform controller.
But I understand more know than when I started this post.

Hope I see you in my another post soon, about the animation problems :)
Check out our homepage. http://www.walsberg.no
Or my personal game blog for news about my games. http://retro-tetro.walsberg.no