How do I control with mouse?

Get help using Construct 2

Post » Mon Oct 27, 2014 6:53 pm

hi to all

i have a sprite, who have the 8 directions behaviour, it move just left-right two directions, it is possibile to control that with the mouse instead of the keyboard?
B
39
S
16
G
7
Posts: 1,727
Reputation: 9,865

Post » Mon Oct 27, 2014 7:24 pm

yes..

How would you like to control it with the mouse..
What actions would you like to do with the mouse?
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Mon Oct 27, 2014 7:35 pm

i found, thanks :D i was looking for controlling the sprite just with the mouse, to left and right only :D
B
39
S
16
G
7
Posts: 1,727
Reputation: 9,865

Post » Mon Oct 27, 2014 7:50 pm

on mouse click? following the pointer? using the mouse-wheel? following only when button is down?

probably you'd want to compare mouse.x to character.x and 8 direction simulate actions..
pretty simple, actually..
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775


Return to How do I....?

Who is online

Users browsing this forum: dop2000, R0J0hound, tarek2 and 28 guests