playMaker

Author Topic: how to add enemies shoot'em up  (Read 2758 times)

dikky

  • Playmaker Newbie
  • *
  • Posts: 3
how to add enemies shoot'em up
« 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

Red

  • Hero Member
  • *****
  • Posts: 563
Re: how to add enemies shoot'em up
« Reply #1 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.

dikky

  • Playmaker Newbie
  • *
  • Posts: 3
Re: how to add enemies shoot'em up
« Reply #2 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

Lane

  • Administrator
  • Hero Member
  • *****
  • Posts: 2511
  • Mender of the past
    • Cleverous
Re: how to add enemies shoot'em up
« Reply #3 on: September 12, 2012, 04:01:39 PM »
Invaders style?
Products by Cleverous
|| Vault Core : Database
|| Vault Inventory : Multiplayer Inventory
|| Vault Attributes : Character Stats
|| That Hurt! : Dmg Floaties
|| Quinn : 3D

dikky

  • Playmaker Newbie
  • *
  • Posts: 3
Re: how to add enemies shoot'em up
« Reply #4 on: September 12, 2012, 05:16:47 PM »
I want to make the enemy as meteorites of this game.  :)


Red

  • Hero Member
  • *****
  • Posts: 563
Re: how to add enemies shoot'em up
« Reply #5 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.