Re: newbie doing simple game
It should be a simple task of giving the baddies a space invader movement and then pick an object at random and make it shoot.
Re: newbie doing simple game
I think there is even a standard movement type for that. (You know, things like Static, bouncing ball, etc.. I think there's one in there called Invader)
Re: newbie doing simple game
Yes, there is a standard movement that is called "Invaders"
Just click on the enemy and then click on movement in the propertis window. :)
Re: newbie doing simple game
well i have the invader movment going fine. I did check the automatically adjust speed or whatever its called. But it doesnt do anything.
I think my problem is getting pieces to shoot at random. Because when I try something like that the whole row shoots together not each individual shooting at random.
Re: newbie doing simple game
You can select one random "invader" when you create your shoot condition.
Create condition -> right click on invader object -> Pick or count -> Pick "my object" at random.
Whatever you do to the object will then apply to only one of them, not the whole bunch.
Have fun!
Re: newbie doing simple game
Put your pieces in a qualifier group, then "pick piece at random" to shoot.
Re: newbie doing simple game
Select all of your enemies and go into properties. Then click the events tab and click on "qualifier(s)." Then add the qualifier "enemies" (it looks like a bolt of lightening.) Now make the following events:
every x milliseconds
add 0+Rand(100) to Alterable Value A of group.enemies.
Alterable Value A of group.enemies is greater than 100
[i]Subtract 100 from Alterable Value A of group.enemies.
Group.enemies shoot an object "bullet" at "player."
I believe that should work. Tell me if it doesn't.
EDIT: Where I said "every x milliseconds" the x value will determine how often the enemies shoot. You could say "every 10 milliseconds," "every 50 milliseconds," etc.
Re: newbie doing simple game
just an addition to pinacoladaxb above, make sure you add the event 'pick object at random' in there otherwise all enemies will shoot at once
Re: newbie doing simple game
Thanks bigredon. I'm never right the first time. :D