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
13
S
2
G
5
Posts: 23
Reputation: 3,350

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
32
S
8
G
6
Posts: 29
Reputation: 6,748

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
32
S
8
G
6
Posts: 29
Reputation: 6,748

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
22
S
4
G
3
Posts: 61
Reputation: 2,683

Post » Thu Nov 17, 2011 10:12 am

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


Return to How do I....?

Who is online

Users browsing this forum: COGames, Waltuo and 22 guests