playMaker

Author Topic: [SOLVED] How do I create a For Loop?  (Read 4108 times)

grimmy

  • Junior Playmaker
  • **
  • Posts: 70
[SOLVED] How do I create a For Loop?
« on: April 10, 2014, 04:33:12 AM »
I want to do something (create an object) x amount of times.

How do I do this easily?

Thanks
« Last Edit: April 11, 2014, 03:56:43 AM by grimmy »

sebaslive

  • Hero Member
  • *****
  • Posts: 572
    • Frame Tale Studios
Re: How do I create a For Loop?
« Reply #1 on: April 10, 2014, 05:55:16 PM »
Hey Grimmy, easiest way I can think of. float - numberEnemy, Create a state that subtracts that number by 1, and a compare float state that if less than 0 go to a new state end, if greater than 0 go to a new state that creates an enemy. That should do it!
All my VR games use Steam VR Playmaker Toolkit: http://u3d.as/u20
And Oculus Touch Playmaker Toolkit: http://u3d.as/QT5


Follow me @sebasRez

grimmy

  • Junior Playmaker
  • **
  • Posts: 70
Re: How do I create a For Loop?
« Reply #2 on: April 11, 2014, 03:56:12 AM »
Okay great..I got it thanks!