playMaker

Author Topic: How to have one bullet on screen at a time  (Read 2419 times)

Destide

  • Playmaker Newbie
  • *
  • Posts: 8
How to have one bullet on screen at a time
« on: March 31, 2012, 08:43:30 AM »
I'm currently working on a music based space invaders game, the player has four types of ammo to choose from which they have to match up to the the right enemy. I want to emulate a similar behavior of the old shooters where only one bullet could exists on screen at a time thus avoiding the player spamming and increasing tension. Any ideas how to do this I keep trying to think of compare actions or something to work it out but I'm not exspirenced enough to quite get it.

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: How to have one bullet on screen at a time
« Reply #1 on: March 31, 2012, 10:44:17 AM »
Hi,

There is an action for this:
https://hutonggames.fogbugz.com/default.asp?W233

simplky fire your bullet and watch for its visibility.
Bye,

 Jean

Destide

  • Playmaker Newbie
  • *
  • Posts: 8
Re: How to have one bullet on screen at a time
« Reply #2 on: March 31, 2012, 02:30:58 PM »
Cool cheers Jean, So I guess I can just setup one of these for each Bullet type and have it only send to fire when the state is true.

Thanks again for your help.