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
drive.google.com/file/d/0B-HkkbOG3PEiRW81ZGszUHJ0ZW8/view
Obstackes
+ He can't move up
drive.google.com/file/d/0B-HkkbOG3PEiMkdqeDU2c2ZYZDg/view
drive.google.com/file/d/0B-HkkbOG3PEiYUVnZU42T29yYm8/view
drive.google.com/file/d/0B-HkkbOG3PEibXEzVGMtVEtUekE/view
+ He can't move left or right
+ He can't move down
drive.google.com/file/d/0B-HkkbOG3PEiUDN6NjZaSVFLMXc/view
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
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.
Develop games in your browser. Powerful, performant & highly capable.
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
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.
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
youtube.com/watch
Any idea?