playMaker

Author Topic: Random X Y movement - Please assist.  (Read 2131 times)

JayRastaman

  • Playmaker Newbie
  • *
  • Posts: 15
Random X Y movement - Please assist.
« on: October 31, 2014, 09:53:52 PM »
Hello -

Please see the picture attached. It shows what I am trying to do. I want to start by getting a random X Y position, then spawning my enemy from that point.

Then my spawned enemy travels in a random X Y position from where it randomly spawns. I will be honest by saying I suck at programming. I am really liking Playmaker and I know it can do what I need, Im just in need of someone who will show me how to do it - I want to learn. Even a small FSM model or script of something to give me an idea of where to start, if nothing else.

If anyone can show me how to do what I need (with comments), I would greatly appreciate any help. I hope I'm not asking for too much...

Thanks in advance. 
In all your getting, get wisdom; Get understanding. -Solomon

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7614
    • jinxtergames
Re: Random X Y movement - Please assist.
« Reply #1 on: November 01, 2014, 07:35:25 AM »
did you look @ the tutorial videos?

if you follow those (and some tutorials in the playmaker tutorials section )
that should get you started.

JayRastaman

  • Playmaker Newbie
  • *
  • Posts: 15
Re: Random X Y movement - Please assist.
« Reply #2 on: November 01, 2014, 09:47:20 AM »
Yes I've gone through them more than once... That's why I ask for anyone to help me through this. I need a good explanation on how to achieve what is needed here (see first post). I think my confusion is from the fact there are so many choices to choose from in the action browser, it can be a bit overwhelming for someone who is still learning Playmaker. So, can anyone help me?
In all your getting, get wisdom; Get understanding. -Solomon

Twood

  • Junior Playmaker
  • **
  • Posts: 76
Re: Random X Y movement - Please assist.
« Reply #3 on: November 01, 2014, 11:10:36 AM »
There's all sorts of ways.

For instance could use Select Random Vector 3
and in the list put a bunch of possible x,y,z spawn positions

make a V3 variable to hold the result

then a Set Position action that uses the variable.