How do I improve this point and click method

Get help using Construct 2

Post » Tue Sep 01, 2015 4:47 pm

As per the below file, I tried to do what seemed logical to make the player sprite move to the exact coordinates of the mouse, what am I doing wrong as it does not seem to work, how do I fix it etc...? I can't find any tutorials online about making a click and point game with construct 2 :'(

http://filebin.ca/2EAVJxvKo1DX/pointandclick.capx
B
10
S
3
Posts: 109
Reputation: 1,080

Post » Tue Sep 01, 2015 4:57 pm

capx

here is one way
Who dares wins
B
57
S
17
G
21
Posts: 1,878
Reputation: 19,567

Post » Tue Sep 01, 2015 7:12 pm

That does not work. I need it to do like a point and click adventure. I have figured out the coordinates of the mouse are not the same as the position of the mouse on the screen, in a point and click adventure game in Construct 2 whats the best way around this?
B
10
S
3
Posts: 109
Reputation: 1,080

Post » Tue Sep 01, 2015 8:49 pm

Set the position of you player to Mouse.X and Mouse.Y if you want the Player sprite to appear below where you click.

Image

You can incorporate lennaert method using Mouse.X and Mouse.Y if you want the sprite to move gradually.
B
33
S
8
G
2
Posts: 100
Reputation: 2,635

Post » Tue Sep 01, 2015 9:19 pm

Ok that works many thanks, next question how would I delay it slightly so my character / player slowly walks to the cursor position rather than just instantly appears there? I tried to add 8 directional movement and do it that way but it does not work.
B
10
S
3
Posts: 109
Reputation: 1,080

Post » Tue Sep 01, 2015 9:32 pm

Have you seen that "c:\Program Files\Construct 2\examples\Move to mouse.capx" ?
ImageImageImageImage
B
157
S
66
G
41
Posts: 2,599
Reputation: 34,825

Post » Tue Sep 01, 2015 9:54 pm

No did'nt see that many thanks!
B
10
S
3
Posts: 109
Reputation: 1,080


Return to How do I....?

Who is online

Users browsing this forum: David181, jorgmaquoi, OBLIVION, unicornspitfire and 32 guests