Hello;
I have a bullet that when destroyed creates either explosionOne or explosionTwo 50% of the time. I wrote a function event BulletExplodes that just creates explosionOne and it works fine. How do I write an IF(random(10)<5) type branch to do either explosionOne or explosionTwo. I don't see any way to do an if type statement inside a function.
Thanks for your time.
System:Compare two values
Is this the kind of thing you mean? I can't use Else here for the other explosion.
Thanks for your help.
You've got Else at the wrong level. Click on event 16 between the minus sign and the cog - that selects the whole event, then press X. That will give you an Else for that event.
I appreciate the help--so I moved up the else but it still won't accept it.
Thanks for your time again.
Don't move the Else up, follow my instructions. (Delete the bad Else first).
Develop games in your browser. Powerful, performant & highly capable.
Great!!! I got it to work.
Thanks blackhornet. I forgot the X.