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?
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/
Develop games in your browser. Powerful, performant & highly capable.
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