I’m trying to randomise my boss attacks but none of the methods I’ve tried have worked, the image shows the latest iteration which allows the game to still run, my previous attempts used the “For action settled once every X” block but that froze the game, is there any way I can fix this?
Why not use a forever block that checks if the boss is enabled and if they are, then run a % chance condition for different attacks after a pause block!
Unfortunately, I don’t know how to use the chance block, the help thing doesn’t show anything useful
Think of the % chance as how often you want the code inside the logical statement to happen. 100% being always, 50% being half of the time and 0% being never.
In this game example, each sprite has a different chance of getting a point when we press A (spacebar):
A more appropriate example would be this game I made long ago. (PS: The code is just an example of how to do bosses with different attacks but it’s definitely NOT a good one! I was new and still experimenting).
I don’t know about you, but “else if” exists, press the “+” on the boolean blocks.
(Not trying to be rude…)
No offense taken!
Using “Else IF” here would actually change the gameplay!
When only using IFs, the game will check all statements. But, when using an “Else IF”, the game will only check the other IFs only if the first statement was false. Both are viable depending on context!