Hundreds of features to explore
Games made in Construct
Your questions answered
Popular & trusted by schools and Universities world-wide
Construct 3 runs in the browser & works offline
Students do not need accounts with us
World class complete documentation
Official and community submitted guides
Learn and share with other game developers
Upload and play games from the Construct community
Game development stories & opinions
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.
Develop games in your browser. Powerful, performant & highly capable.
Don't move the Else up, follow my instructions. (Delete the bad Else first).
Great!!! I got it to work.
Thanks blackhornet. I forgot the X.