Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: Robert Foster on January 20, 2014, 08:23:37 AM

Title: how to do wave system in playmaker [SOLVED]
Post by: Robert Foster on January 20, 2014, 08:23:37 AM
i try to make a simple wave system a with basic track to ai and different wave 1,2,3 one  is slow  two is fast  three is faster  i need a little bit help with out  download addon  :)
Title: Re: how to do wave system in playmaker
Post by: Lane on January 20, 2014, 08:32:39 AM
Waves, as in waves of enemies? Where the first is slow and the last is fast? Depends on your setup, but you could have the AI get their speed variable when they spawn from some static object, and increase that at the end of each round. Or make different versions of the enemies that walk faster.
Title: Re: how to do wave system in playmaker
Post by: Robert Foster on January 20, 2014, 09:04:53 AM
Waves, as in waves of enemies? yes  i trying to make a simple game i planning first i made a lot of template  i said nothing is now simple i need the you setup a small tutorial text & picture please without add on
Title: Re: how to do wave system in playmaker
Post by: Lane on January 20, 2014, 09:32:08 AM
Have you tried using a common speed variable and changing that after each wave?
Title: Re: how to do wave system in playmaker
Post by: Robert Foster on January 20, 2014, 09:46:42 AM
Have you tried using a common speed variable and changing that after each wave? no tail me more please
Title: Re: how to do wave system in playmaker
Post by: Lane on January 20, 2014, 09:50:59 AM
You can make a gameobject and put a "Speed" variable on it, then make the enemies get that variable when they spawn and use it in their locomotion system.

Then you just change [increase] that variable after each wave completes and the next wave will spawn, get the new speed variable and go along.
Title: Re: how to do wave system in playmaker
Post by: Robert Foster on January 20, 2014, 02:08:03 PM
Quote
You can make a gameobject and put a "Speed" variable on it, then make the enemies get that variable when they spawn and use it in their locomotion system.

Then you just change [increase] that variable after each wave completes and the next wave will spawn, get the new speed variable and go along.
it did not work i use manager i using int ,float or some thing else tail me more with picture please define speed is int or float  i don,t have a locomotion  i under stand but i need detail please one more time please
Title: Re: how to do wave system in playmaker
Post by: Lane on January 20, 2014, 02:42:47 PM
The enemies are moving by some force, right? You'll be using a float for speed most likely.

They must have some sort of even rudimentary AI system in order to operate, right? There must be at the bare minimum something that will move the enemy in a direction, and you'll need a float or int to control the speed.

When the enemy spawns he has to use some float variable to start moving, right? Speed. When he spawns, before he does anything, just force him to get a new speed variable from some game object/script/fsm in the scene.

You can change that Speed variable at any time, right? Just change it at the start of every wave, then any enemies that spawn will grab that new speed and use it. It's the same variable, you just increased it, hence making them move faster.

You could do this easier with global variables, but in my experience they are clunky to work with..
Title: Re: how to do wave system in playmaker
Post by: Robert Foster on January 20, 2014, 02:51:18 PM
think you
Title: Re: how to do wave system in playmaker
Post by: Robert Foster on January 21, 2014, 02:53:54 PM
i try it will i have trouble with it here my file i hope you can tail me what wrong with it
Title: Re: how to do wave system in playmaker
Post by: Lane on January 21, 2014, 03:52:14 PM
There were many errors in that example and most of the fsm's were extremely hard to read, I made a new spawn manager and enemy for simplicity.



Title: Re: how to do wave system in playmaker
Post by: Robert Foster on January 21, 2014, 06:32:36 PM
Thank you