Movement by mouse

Get help using Construct 2

Post » Tue Nov 08, 2011 1:33 pm

Hi guys.

I am just starting a new, very basic shooter game.

I have a sprite that is a crosshair.

I want to be able to move the crosshair with the mouse.

Could someone offer me advice on how to achieve this.

I have done a search but nothing matched

Regards
B
4
G
2
Posts: 30
Reputation: 1,260

Post » Tue Nov 08, 2011 1:49 pm

Check the examples in the example folder of your C2 install.
Check also the beginner's guide for C2 tutorial.

Add a sprite object to your project (your crosshair) and a mouse object.
Use an event "every tick" and set sprite's position to mouse.x and mouse.y.
New to Construct ? Where to start

Image Image
Image Image

Please attach a capx to any help request or bug report !
Moderator
B
247
S
85
G
40
Posts: 7,000
Reputation: 57,795


Return to How do I....?

Who is online

Users browsing this forum: Yahoo [Bot] and 26 guests