Timeline for Increase speed with each enemy destroyed?
Current License: CC BY-SA 3.0
10 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Sep 16, 2017 at 13:26 | history | edited | DMGregory♦ | CC BY-SA 3.0 |
Removing update meta-tag, as discussed here https://gamedev.meta.stackexchange.com/a/2510/39518
|
Aug 4, 2017 at 16:40 | review | Close votes | |||
Aug 5, 2017 at 19:19 | |||||
May 4, 2016 at 13:58 | comment | added | Tony Chacon | Not dodging, just misunderstood. Anyway, yes that's what I'm trying to do. | |
May 4, 2016 at 13:45 | comment | added | Philipp |
You are dodging the question. Is what you are actually trying to do in that line is count how many of these objects you still have in the scene and then set the speed accordingly? In that case I would expect that Gunner_SpeedIncrease is called Gunner_SetSpeed and takes a number as an argument.
|
|
May 4, 2016 at 13:02 | comment | added | Philipp | OK, and why are you counting how many of these you have in the scene and then try to decrease their count by one? | |
May 4, 2016 at 12:52 | history | edited | Tony Chacon | CC BY-SA 3.0 |
added 73 characters in body; added 15 characters in body
|
May 4, 2016 at 12:49 | comment | added | Tony Chacon | It's comprised of a Target and Laser Gate. The Bullet can pass through the Laser Gate, but the Gunner can't. BulletProgressionObject is just an arbitrary name I gave the parent game object. | |
May 4, 2016 at 12:18 | comment | added | Philipp |
The line GameObject.FindGameObjectsWithTag ("BulletProgressionObject").Length -= 1 means "decrease the array length by one" which obviously doesn't make sense because 1. array lengths are read-only, 2. it's a temporary array generated on-the-fly by FindGameObjectsWithTag and 3. it's in an if-condition and assignments in if-conditions are not allowed. What do you really want to do in that line? What's a BulletProgressionObject anyway?
|
|
May 4, 2016 at 11:49 | answer | added | Chris McFarland | timeline score: 3 | |
May 4, 2016 at 11:32 | history | asked | Tony Chacon | CC BY-SA 3.0 |