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
Our educational partners
Free education resources to use in the classroom
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
Hello. I was trying to make an 'explosion' using physical (something like the explosion of aliens that video, but not the small pieces, large pieces) but did not get the result even look, someone who understands physics can help?
Alien video: https://tutsplus.github.io/bringing-you ... tion-9.mp4
capx: https://dl.dropboxusercontent.com/u/206 ... osion.capx
I don't think this expression does what you think it does:
angle(monster.X, monster.Y, random(360), random(360))[/code:edvl1pbf]
This is getting the angle between your monster position and a random point with X and Y coordinates not exceeding 360. All parameters for the angle() expression represent coordinates, not angles.
Replace the previous expression with this expression and you should have pieces properly flying in random directions:
Develop games in your browser. Powerful, performant & highly capable.
You can also use the bullet-behavior for the pieces (needs less ressources then gravity and is easier to handle, i think *g*).
Edit: Hmm... Attaching a file does not work at the moment... Use THIS LINK to download the .capx
Tnks guys =)