Got a question.
How would I code something in a single line to be able to control various percentages of the ships which spawn on screen?
Currently I have this set up as:
set type (local variable) to choose (1,1) or choose (1,2,3,4,5...) etc, but no idea how to even set this up to accurately control spawn ratios of different ships on screen.
Basically I have a lot of different ship types, but rather than just revealing them all at once in a random version, I found that a slower timed reveal works better, feels
way more video gamy.
There's generally about 10 ships total on screen at a time with the spawner I have set up.
I have a time variable TimeCount
so let's say TimeCount>5
spawn just 1 ship type
spawn 1 ship of Ship Type 2 for every 9 ships of Ship Type 1
say spawn 3 ships of Ship Type 5 for every 7 ships of Ship Type 3 etc etc
Basically, it gets pretty hard to do with the choose expression.
Something with percentages that's very compact that could fit in a single line of code (maybe with calls, functions, etc.) that works well with a For Each X element of an array loop would be great here.