how do i make a chess movement ???

Get help using Construct 2

Post » Sat Jun 14, 2014 1:05 pm

i have arena like a grid view with width 64 and height 32.
i want my hero go to a any place with path finding and move by my arena ...

anyone can helps me ???

Image
B
12
S
2
G
2
Posts: 54
Reputation: 2,144

Post » Sun Jun 15, 2014 11:24 am

Use the coordinates of the positions and "find Path" to X,Ycoordinates..in the right sequence
Then if path found...move along path

I often use an invisible helper sprite that is "positioned first on a screen X,Y pos then i find path to the Helper sprite rather than directly...this way you can move your helper anywhere and then make the path finding do the work..

break it down into steps...or moves....
like
find path to (heroX), (hero Y minus your grid size with was 32)
then move along path
then find path to (HeroX minus the 64 times how many grids you need to take),(Hero Y)


hope that helps
When in doubt..or you are lost in a Zombie apocalypse or someone is giving you a hard time..Remember one thing..... Read the Construct 2 Manual..it will save your life.:)
B
35
S
13
G
8
Posts: 318
Reputation: 7,685

Post » Tue Jun 17, 2014 9:34 am

thanks @mystazsea for relpy this topic ... i've do like this . it's not moving .. any idea ???

Image
B
12
S
2
G
2
Posts: 54
Reputation: 2,144


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 8 guests