playMaker

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

Destide

  • Playmaker Newbie
  • *
  • Posts: 8
    • View Profile
How to have one bullet on screen at a time
« on: March 31, 2012, 05: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: 14035
  • Official Playmaker Support
    • View Profile
Re: How to have one bullet on screen at a time
« Reply #1 on: March 31, 2012, 07: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
    • View Profile
Re: How to have one bullet on screen at a time
« Reply #2 on: March 31, 2012, 11:30:58 AM »
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.