How do I Get my path finding to move in a straight line.

Get help using Construct 2

Post » Sun Dec 11, 2016 5:24 am

Message: CryingOnion15 can only post plain text URLS until they have 500 rep. 1 URLS modified. Why?
Hi, I'm trying to create a game with movement where you can move a certain amount of squares I got the square to works but my path finding make my sprite get off angle and out of position. Is there something wrong with my path finding or is there setting where I can snap sprite to a grid?

Here is my project: https://drive.google.com/file/d/0B2J 4XHFiDhFycVZzX3pfWHlKQUU/view?usp=sharing
B
7
S
1
Posts: 9
Reputation: 385

Post » Sun Dec 11, 2016 5:52 am

here is a event simple grid movement maybe you can adapt to your game
B
70
S
20
G
67
Posts: 1,316
Reputation: 42,305

Post » Mon Dec 12, 2016 1:55 am

Thanks, for the help this is exactly what I needed.
B
7
S
1
Posts: 9
Reputation: 385

Post » Mon Dec 12, 2016 2:01 am

Is there a way to stop the movement on a solid? or out of the layout?
B
7
S
1
Posts: 9
Reputation: 385

Post » Mon Dec 12, 2016 3:08 am

yea you can destroy the green pieces if they are not overlapping the grid tilebackground or are spawned outside that way u cant click them therefor u wont be able to move outside.

here you go i modified the capx a bit. remember to keep the sizes of the grid relatively to 36 pixels or something like that. the grid is based on visual placement.

but u can do it using arrays or other stuff. but this method i find it most simple then most.
B
70
S
20
G
67
Posts: 1,316
Reputation: 42,305


Return to How do I....?

Who is online

Users browsing this forum: adamebastin, Bro7hers, ketramtu18 and 9 guests