playMaker

Author Topic: [SOLVED]playmaker and itween paths  (Read 3049 times)

wallaceb68

  • Junior Playmaker
  • **
  • Posts: 87
[SOLVED]playmaker and itween paths
« on: September 01, 2013, 06:49:59 PM »
ok let try to explain this the best i can.

this is what i need to do:
i have 4 animated objects that have a idle and run animation on them.
on the idle animation is my start state. and has a get mouse button down action on it that send the event run.(on all 4 objects)

i have 4 tree objects that each have 4 itween paths on them.

what i am trying to do is when mouse button down.
1st random pick one of the 4 trees, then each animated object can random pick from one of the 4 itween paths going to that tree. (each object needs to go to the same tree but can pick it own random path to that tree)
« Last Edit: September 07, 2013, 09:54:52 PM by wallaceb68 »

wallaceb68

  • Junior Playmaker
  • **
  • Posts: 87
Re: playmaker and itween paths
« Reply #1 on: September 02, 2013, 08:47:48 PM »
Am i explaining this right?

wallaceb68

  • Junior Playmaker
  • **
  • Posts: 87
Re: playmaker and itween paths
« Reply #2 on: September 04, 2013, 07:53:55 AM »
anyone?

bizilux

  • Full Member
  • ***
  • Posts: 171
Re: playmaker and itween paths
« Reply #3 on: September 04, 2013, 09:34:05 AM »
so, when you press mouse, it selects one tree as goal, and then 4 players pick random path out of 4 paths, and get to that tree

use "select random game object" action, for picking random tree

i didnt use itween yet, but i will sooner or later since i need to do pathing for my 2D sidescroller strategy game too... (i believe itween is for making paths right)

wallaceb68

  • Junior Playmaker
  • **
  • Posts: 87
Re: playmaker and itween paths
« Reply #4 on: September 04, 2013, 02:15:44 PM »
bizilux thanks for the reply, yes i am using " select random game object" and that works fine but what i cant figure out is to "select random string" (ie: itween paths) based on that randomly selected game object. i only want to select a path from the random tree selected.

bizilux

  • Full Member
  • ***
  • Posts: 171
Re: playmaker and itween paths
« Reply #5 on: September 04, 2013, 03:11:17 PM »
post some screenshots so we can see what you have now

i'd suggest storing that tree as GameObject variable, and then using "Get Name" action to get string out of this GameObject, and then you have for example "Tree #1" stored as string variable and then you can do stuff with that string? (string compare action)

wallaceb68

  • Junior Playmaker
  • **
  • Posts: 87
Re: playmaker and itween paths
« Reply #6 on: September 06, 2013, 10:52:21 AM »
ok got it figured out, thanks  bizilux you got me started down the right path.