Moving sprite at an angle using mouse

Get help using Construct 2

Post » Thu Nov 10, 2011 6:57 pm

Hey guys,
I have a sprite at the bottom of the page pointing up and would like to have it rotate to where the mouse cursor is pointed at. i'm not sure i explained this correctly so i'm attaching the capx. Thanks

http://dl.dropbox.com/u/13810427/Shooter.capx
B
12
S
2
G
5
Posts: 23
Reputation: 3,320

Post » Wed Nov 16, 2011 10:12 am

See the basic tutorial. There de player sprite is always directed to the position of de mausepointer.
B
31
S
8
G
6
Posts: 29
Reputation: 6,718

Post » Wed Nov 16, 2011 10:17 am

See the basic tutorial. There de player sprite is always directed to the position of de mausepointer. Demo Ghost Shooter on the site..
B
31
S
8
G
6
Posts: 29
Reputation: 6,718

Post » Wed Nov 16, 2011 2:47 pm

+System Every Tick - Sprite set angle toward position (X: Mouse.X   and Y: Mouse.Y)Tuiii2011-11-16 14:47:48
B
19
S
3
G
3
Posts: 56
Reputation: 2,496

Post » Thu Nov 17, 2011 10:12 am

Yeah figured it out, had to rotate image before running construct.
B
12
S
2
G
5
Posts: 23
Reputation: 3,320


Return to How do I....?

Who is online

Users browsing this forum: fredriksthlm, marekmk and 3 guests