I am trying to do some sort of loop or comparison bit here but not working out. I have read some posts but some either not worked for me (they were based on time) or for Construct 2.
My ship can fire two types of bullets at this time. Its default and then the first power up:
+ MouseKeyboard: On key Space pressed
+ Hero: Value 'Weapons' Equal to 0
-> System: Create object Bullet on layer 1 at (0, 0) from Hero 's image point 1
-> XAudio2: Autoplay resource "imphenzia_soundtrack_laser36.wav" (No loop)
+ Hero: Value 'Weapons' Equal to 1
-> System: Create object Bullet2 on layer 1 at (0, 0) from Hero 's image point 2
-> System: Create object Bullet2 on layer 1 at (0, 0) from Hero 's image point 3
-> XAudio2: Autoplay resource "imphenzia_soundtrack_laser36.wav" (No loop)
What I am trying to do is make it that only X shots can be present on the screen at anytime, like 10 or 20 bullets. This way, stronger weapons, like bullet2 will be, will not make the player near invincible.
I figured i would use some sort of comparison, making a global variable for each bullet type, but just not working out when I am looking at the options and trying to figure it out.
Thank you for any help.
=========
Christian, ninja, warrior, Borg, Time Lord... I am that hero!