Hundreds of features to explore
Games made in Construct
Your questions answered
Trusted by schools and universities worldwide
Free education resources to use in the classroom
Students do not need accounts with us
What we believe
We are in this together
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
Develop games in your browser. Powerful, performant & highly capable.
Should I add an invisible wall to the edges of the screen then?
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