How do I make an object follow a path highlighted

Get help using Construct 2

Post » Tue Dec 30, 2014 1:29 am

I am making sort of a tactics game with a 4x4 grid. I wanted to make it so that when i mark the path on the grid the piece will move along that path toward that grid cell.

Ive been trying for the past few days but cant seem to get something working. Hope someone can help me out.
B
7
S
2
G
3
Posts: 31
Reputation: 2,446

Post » Tue Dec 30, 2014 7:31 am

Try my capx:
16tiles_board.capx


I'm sure Kyatric has proper example, can't remember the thread though.
You do not have the required permissions to view the files attached to this post.
ImageImage
B
102
S
46
G
22
Posts: 773
Reputation: 21,607

Post » Tue Dec 30, 2014 8:52 am

@alextro hey thank you for the help/response.

I had a look into the capx. this is similar to what i had imagine but it was more of making the piece move along the squares if i pressed down on the squares.

An example would be the piece is at 1 and i press 2,3 (connecting squares) then maybe a button and the piece would move along those squares and stop at 3.

Sorry i should've been clearer in the earlier post.
B
7
S
2
G
3
Posts: 31
Reputation: 2,446

Post » Tue Dec 30, 2014 11:37 am

Okay I listen you. I'll be back soon to solve the quest you are about to ask. Shouldn't be so hard but who knows.
ImageImage
B
102
S
46
G
22
Posts: 773
Reputation: 21,607

Post » Tue Dec 30, 2014 11:42 am

Thank you so much. im literally tearing my hair out over this!

can't wait to see
B
7
S
2
G
3
Posts: 31
Reputation: 2,446

Post » Wed Dec 31, 2014 8:35 am

Now it's working like it should (perhaps).
Pick the piece then click on desired tile. Click again on the same tile to make the piece moves.
You can even cancel selected tile by click on another.
You do not have the required permissions to view the files attached to this post.
ImageImage
B
102
S
46
G
22
Posts: 773
Reputation: 21,607

Post » Tue Jan 06, 2015 4:52 am

Got it worked, Fire Emblem-movement like or similar.

Image

You can click on tiles one by one or just drag over it to mark the path movement.
You do not have the required permissions to view the files attached to this post.
ImageImage
B
102
S
46
G
22
Posts: 773
Reputation: 21,607

Post » Tue Jan 06, 2015 10:14 pm

@alextro Sweet i can't wait to get home and try it.

That looks awesome! Should be great.

Thanks so much alex
B
7
S
2
G
3
Posts: 31
Reputation: 2,446

Post » Mon Jan 12, 2015 6:08 pm

Update revision 1.1 :
- Remove corner sensor. Now corner detection is a degree comparison which is more faster.
- Head arrow has sense of direction when dragging cursor.

https://dl.dropboxusercontent.com/u/659 ... _dir2.capx
ImageImage
B
102
S
46
G
22
Posts: 773
Reputation: 21,607


Return to How do I....?

Who is online

Users browsing this forum: digitalsoapbox, RetrocadeMedia and 1 guest