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
So, here is the thing, I am spawning rockets and I want them to shoot towards the player no matter what is the position of the player.
Develop games in your browser. Powerful, performant & highly capable.
Set angle toward position : player.x,player.y
maybe set angle of motion? or that will not work?
Not really, you want to set the angle toward a position if it is like a homing missile. Your object with the bullet behaviour is a sprite? Use sprite - set angle toward player.
thing is that I am controlling the player using a mouse, would that somehow affect the homing behavior. Plus, the thing you sent me on what to do spawns the rockets pretty much at opposite of the player
The rockets are acting independently from the player, they should be using the bullet behaviour so they act like a bullet and set angle toward player means they will direct towards the player location. Also to note you need to set angle toward player constantly or it will just pick the original location of the player and just go towards that and never update and follow the player.