How do I make grid movement on triangular grid

Get help using Construct 2

Post » Mon Oct 17, 2016 10:12 am

Message: Khoa1304 can only post plain text URLS until they have 500 rep. 7 URLS modified. Why?
Hi everyone :)
As the title said, do you have any idea how to make grid movement on triangular grid? As I searched I only found tutorials for square grid :( To be clearer, I have a triangle grid and the player (Blue dot) can move by arrow key or click on the triangle tile. And also he will stop moving when facing obstacles. Pls see images below for more details.

Movement
https://drive.google.com/file/d/0B-HkkbOG3PEiRW81ZGszUHJ0ZW8/view?usp=sharing

Obstackes
+ He can't move up
https://drive.google.com/file/d/0B-HkkbOG3PEiMkdqeDU2c2ZYZDg/view?usp=sharing
https://drive.google.com/file/d/0B-HkkbOG3PEiYUVnZU42T29yYm8/view?usp=sharing
https://drive.google.com/file/d/0B-HkkbOG3PEibXEzVGMtVEtUekE/view?usp=sharing

+ He can't move left or right
https://drive.google.com/file/d/0B-HkkbOG3PEiYUVnZU42T29yYm8/view?usp=sharing
https://drive.google.com/file/d/0B-HkkbOG3PEibXEzVGMtVEtUekE/view?usp=sharing

+ He can't move down
https://drive.google.com/file/d/0B-HkkbOG3PEiUDN6NjZaSVFLMXc/view?usp=sharing

I'm new to C2 so any help in details will help a lot and I'm so thankful for any help or idea. Thanks a lot
B
5
S
1
Posts: 3
Reputation: 331

Post » Mon Oct 17, 2016 2:39 pm

The snap, i would do this way.

https://drive.google.com/open?id=0B1SSu ... GoxSTJSTE0

You can lerp, or use the LiteTween/MoveTo plugins as you have seen in the square tutorials.
Can show you if you need it, just ask.

For the collisions, i look into that later.
B
33
S
18
G
28
Posts: 2,493
Reputation: 20,950

Post » Tue Oct 18, 2016 2:44 pm

Hi @99Instances2Go , thanks for the .capx and suggesting the plugins, I could make it move on triangle grid now but still search on the collisions. If you have any solution , pls tell. Thank you :)
B
5
S
1
Posts: 3
Reputation: 331

Post » Wed Oct 19, 2016 8:43 pm

Restricting the movements based on animation frame is not that hard. Just intense.
Here is a modest start.

https://www.dropbox.com/s/go3mrysczgyp3 ... .capx?dl=0

But i have no idea how you gonna construct levels.
B
33
S
18
G
28
Posts: 2,493
Reputation: 20,950

Post » Thu Oct 20, 2016 3:41 am

Message: Khoa1304 can only post plain text URLS until they have 500 rep. 1 URLS modified. Why?
Hi @99Instances2Go, thanks for the .capx, it's awesome :)
Actually I want to make a game like link below but instead of square, I want to use triangle
https://www.youtube.com/watch?v=eB1cMHNtuBw
Any idea?
B
5
S
1
Posts: 3
Reputation: 331


Return to How do I....?

Who is online

Users browsing this forum: MrSkailo and 25 guests