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 basically I am trying to test C2 by making a very very simple sort of bullet hell shooter.
Working out okay so far figured out shooting and movement for the player but i can't figure out how to get an "enemy" sprite to spawn and then always be trying to reach the players sprite?
for example every 1 seconds get the enemy ship to create another sprite that has the behavior bullet and then set that buttlets angle to that of the player ship. I use angle(x1, x2, y1, y2) X is the bullet and Y is the Player.
I think that should do it :)
Thanks but i don't get this bit:
I use angle(x1, x2, y1, y2) X is the bullet and Y is the Player.
Bear in mind this is my first proper time using it.
Correct me if I'm wrong.
Just as KSLR said, but:
Event: Every tick -> Enemy -> Set angle toward position ->
X = Player.X
Y = Player.Y
And for the spawn "ship" thingy
Every X seconds -> Ship -> Spawn another object -> Enemy
Hope this cleared things a bit.
Develop games in your browser. Powerful, performant & highly capable.
every 0.01 sec move "enemy" 1 pixel toward position player.x player.y