Playmaker Forum
PlayMaker Help & Tips => PlayMaker Help => Topic started by: JayRastaman 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.
-
did you look @ the tutorial videos?
if you follow those (and some tutorials in the playmaker tutorials section (http://hutonggames.com/playmakerforum/index.php?board=24.0) )
that should get you started.
-
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?
-
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.