Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: dikky on September 12, 2012, 12:56:53 PM

Title: how to add enemies shoot'em up
Post by: dikky on September 12, 2012, 12:56:53 PM
I'm new with play maker and I would like to create a shoot'em up.

how to add enemies randomly and they are displayed to the top of the screen?
someone would have an example?

 Thanks
Title: Re: how to add enemies shoot'em up
Post by: Red on September 12, 2012, 03:15:54 PM
not sure i follow... do you mean adding the enemies to the top of the screen randomly or randomly in the level and having an indicator at the top of the screen to show how many you have?

a bit more detail would really be helpful.
Title: Re: how to add enemies shoot'em up
Post by: dikky on September 12, 2012, 03:38:44 PM
Hello red

I would like the enemies created automatically. They need to move from the top to the bottom of the screen. should not they appear at the same point.

I hope you understood me;-)

I want to know how to make enemies in a shooter with play maker.

Thanks for your help me
Title: Re: how to add enemies shoot'em up
Post by: Lane on September 12, 2012, 04:01:39 PM
Invaders style?
Title: Re: how to add enemies shoot'em up
Post by: dikky on September 12, 2012, 05:16:47 PM
I want to make the enemy as meteorites of this game.  :)

Title: Re: how to add enemies shoot'em up
Post by: Red on September 12, 2012, 07:25:53 PM
that seems like it'd be pretty simple.

create a state that chooses a random value from 1 to (width of screen) and create it at the appropriate vector.

so, say you have it creating random along the Y vector, you could "create object" with a position set to the proper vector. so, random number (let's say = 25,) create a vector3 (with the Y set to the random number but the X and Z at whatever height/depth you need) and spawn an object at the newly created vector... repeat as necessary.

not sure the finer points of this but that's where you can experiment.