How do I make a grid movement?

Get help using Construct 2

Post » Thu Sep 08, 2016 12:15 am

This is probably the millionth time this question has been asked. But I'm never able to comprehend how to actually do this. I want to make a grid styled movement like those in a digital chess game. So when you click your Sprite it highlights it's possible moves. I already know it requires an array but otherwise that's all I know. Can someone be kind enough to start from the essentials and progress through in a understandable way? Thanks
I don't think I could ever stab someone, I mean, let's be honest. I can barely get the straw into a Capri Sun.
B
26
S
10
G
7
Posts: 91
Reputation: 6,420

Post » Thu Sep 08, 2016 12:51 am

Check out Rexrainbow's [Plugin]Board, Layout2Board [Behavior] Grid Move.

plugin-board-layout2board-behavior-grid-move_t69647?start=360

This was the best thread I've read on the grid movement.

how-do-i-grid-movement-solved_t107209

Here's Lordshiva1948's tutorial on chessboard movement.

https://www.scirra.com/tutorials/864/board-movements

And lastly, jomo's great 4 part series tutorials on the same subject.

https://www.scirra.com/tutorials/4997/r ... oard-basic
https://www.scirra.com/tutorials/5000/r ... -detection
https://www.scirra.com/tutorials/5003/r ... nd-add-row
https://www.scirra.com/tutorials/5006/r ... -it-a-game
B
11
S
6
G
15
Posts: 256
Reputation: 9,207

Post » Thu Sep 08, 2016 5:29 am

@Gmoney thanks for the suggestions, but is there possibly a way to do this without any plugins? Or are plugins the only findable way?
I don't think I could ever stab someone, I mean, let's be honest. I can barely get the straw into a Capri Sun.
B
26
S
10
G
7
Posts: 91
Reputation: 6,420

Post » Thu Sep 08, 2016 9:08 am

The How do I FAQ should always be the first place to look.
Object moving
Tile/Grid movement - LINK


Otherwise this tutorial can help out as well.
New to Construct ? Where to start

Image Image

Image Image

Please attach a capx to any help request or bug report !
Moderator
B
288
S
111
G
94
Posts: 7,332
Reputation: 69,160

Post » Sat Sep 10, 2016 6:46 pm

Thanks @Kyatric I think I can work with this.
I don't think I could ever stab someone, I mean, let's be honest. I can barely get the straw into a Capri Sun.
B
26
S
10
G
7
Posts: 91
Reputation: 6,420


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 19 guests