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
Basically I want to make a dodge game (like lewpen.com/game/).
Every time you "catch" a target, a red circle appears. When the circle is outside the layout, it should bounce off at a logical angle. I tried to do this in construct 2, but I've no idea how.
Anyone has any idea how this could be done?
use bullet behavior with bounce off solid setting, you should probably add a bit of randomness to the angle, cause now its very predictable, but its a start
Should I add an invisible wall to the edges of the screen then?
Develop games in your browser. Powerful, performant & highly capable.
I used the invisible walls now on the screen edges. Problem is that when the beetleship is at your mouse pointer it flashes.
You can test it at: http://wizard.mmotter.com/
only set the angle to mouse if the distance to mouse is greater then a certain distance
distance(player.x, player.y, mouse.x, mouse.y)
is greater then
set player angle of motion to mouse
Maybe you could stop its movement when it overlap the mouse.
Ok, thanks, I did that