Mouse aiming for platform-shooter

For questions about using Classic.

Post » Wed Oct 26, 2011 4:57 pm

Hi there, does anyone know how to create/have examples of a 2D platform shooter that utilizes mouse aiming?
B
2
G
1
Posts: 2
Reputation: 454

Post » Wed Oct 26, 2011 5:47 pm

I don't know of any off hand, but a way you could go about it is have two sprites for the player. One of the legs and on for the torso. Put the hotspot of both sprites at the waist and give the legs the platform behavior.
Then use an event like this:

Always:
---torso: set position to legs
---torso: set angle toward position (mousex, mousey)
B
79
S
24
G
54
Posts: 4,743
Reputation: 40,749

Post » Wed Oct 26, 2011 6:07 pm

Thanks for replying, that really helped!

Edit: Since I've already made a post, can I also ask how to add music and sound effects?Jumbo2011-10-26 18:39:39
B
2
G
1
Posts: 2
Reputation: 454


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 1 guest