Object shoot towards cursor?

Get help using Construct 2

Post » Fri Jun 09, 2017 5:27 pm

I'm creating a little shooter project. I've read a few tutorials, but with little success. I have an object, and when the screen is clicked, I want that object to shoot a bullet towards the point where the cursor is at the time the click goes off. But if the cursor moves after the click, I don't want that angle to change towards the new cursor location.

I hope that's not confusing. Help? Thanks in advance!
B
14
S
4
G
1
Posts: 35
Reputation: 1,634

Post » Fri Jun 09, 2017 5:43 pm

Ha! Figured it out. Whoops. It was easy. XP

I set the bullet like this:
"bullet" > "set angle toward position" > X: "Mouse.X", Y: "Mouse.Y"

Works just as I wanted it to. Thanks for reading. =]
B
14
S
4
G
1
Posts: 35
Reputation: 1,634


Return to How do I....?

Who is online

Users browsing this forum: NN81 and 10 guests