Playmaker Forum
PlayMaker Help & Tips => PlayMaker Help => Topic started 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
-
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.
-
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
-
Invaders style?
-
I want to make the enemy as meteorites of this game. :)
-
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.