Alright, so in a collab, I'm making a game for it where you make a sound into the mic and lasors shoot. Unfortunately, I'm having a lot of trouble. Here is what I need:
- Only have some of the lasors shoot at a time (I guess depending on loudness)
- Have it so the lasor shoots as fast as the sound is loud
- Have it so that the lasors glide to a set coordinate, then return to a set coordinate
Thanks so much, and I will credit you in the finished game.
Last edited by StarscreamClone (2013-03-14 20:43:15)
Offline
StarscreamClone wrote:
Alright, so in a collab, I'm making a game for it where you make a sound into the mic and lasors shoot. Unfortunately, I'm having a lot of trouble. Here is what I need:
- Only have some of the lasors shoot at a time (I guess depending on loudness)
- Have it so the lasor shoots as fast as the sound is loud
- Have it so that the lasors glide to a set coordinate, then return to a set coordinate
Thanks so much, and I will credit you in the finished game.
Just out of curiosity, how will you determine where the laser will shoot?
With regards,
ErnieParke
Offline
Well, the last one i can help with, though not sure about the first two.
It should be easy, if soundwave is in the middle, then use the:
<touching? [edge v]>Conditional.
Last edited by CAA14 (2013-03-14 21:00:59)
Offline
ErnieParke wrote:
StarscreamClone wrote:
Alright, so in a collab, I'm making a game for it where you make a sound into the mic and lasors shoot. Unfortunately, I'm having a lot of trouble. Here is what I need:
- Only have some of the lasors shoot at a time (I guess depending on loudness)
- Have it so the lasor shoots as fast as the sound is loud
- Have it so that the lasors glide to a set coordinate, then return to a set coordinate
Thanks so much, and I will credit you in the finished game.Just out of curiosity, how will you determine where the laser will shoot?
With regards,
ErnieParke
I was thinking the same thing, i would guess with the mouse...
Regards,
CAA14
Offline
I'm not sure if I'm even close to this level yet, or if this is exactly what you need, but here we go. It makes sense in my head at least.
A variable named loudness should be made, and then used like this:
when gf clicked forever set [Loudness v] to (loudness)Then, I'm guessing you have different sprites for each laser?
when gf clicked forever if <(loudness) > [Loudness you want the laser to be activated at]> broadcast [Fire Laser 1 v]Then you can make a formula with the loudness to determine the speed of the laser.
when I receive [Fire Laser 1 v] go to [start position] show forever if <not <touching [edge v]>> change x by <[5] + [0.1] * (Loudness)> else hideThere might be more advanced ways to get it done, but I hope it at least helps you in some way.
Offline
Harald wrote:
I'm not sure if I'm even close to this level yet, or if this is exactly what you need, but here we go. It makes sense in my head at least.
A variable named loudness should be made, and then used like this:when gf clicked forever set [Loudness v] to (loudness)Then, I'm guessing you have different sprites for each laser?
For each sprite, make one of these:when gf clicked forever if <(loudness) > [Loudness you want the laser to be activated at]> broadcast [Fire Laser 1 v]Then you can make a formula with the loudness to determine the speed of the laser.when I receive [Fire Laser 1 v] go to [start position] show forever if <not <touching [edge v]>> change x by <[5] + [0.1] * (Loudness)> else hideThere might be more advanced ways to get it done, but I hope it at least helps you in some way.
Also, I have an unfinished shooter game, which contains scripts to make sure a laser cannot be fired again until it has hit it's target. I can upload the game for you to take a look at, if you wish.
Ah, thank you!
@Rodimus and Ernie: The loudness would determine that; the lasors on the right side will fire if you reach a certain loudness.
Last edited by StarscreamClone (2013-03-15 09:23:07)
Offline
Is now functioning; I think I'll leave the bit about until it reaches it's target; makes it more challenging. I greatly appreciate you help, Harald, and will credit you in the final game.
Offline