Path Finding in 4 directions

For questions about using Classic.

Post » Sat Jan 15, 2011 8:39 am

Hi, is it possible to have an object pathfind after the player, but move in only four directions? I've tried the RTS behaviour but I don't know how to get the object to only move in 4 directions.
B
3
S
1
G
3
Posts: 105
Reputation: 1,312

Post » Sat Jan 15, 2011 11:13 am

i would try combaining RTS and Grid Behaviour.
ImageImageImageImage
B
26
S
7
G
7
Posts: 572
Reputation: 6,097

Post » Sun Jan 16, 2011 7:14 am

[quote="irbis":1wr6xojp]i would try combaining RTS and Grid Behaviour.[/quote:1wr6xojp]

RTS and grid movement are two different behaviours, they won't combine with eachother. It didn't work.
B
3
S
1
G
3
Posts: 105
Reputation: 1,312

Post » Sun Jan 16, 2011 9:00 am

Never mind, I found a work around using the RTS object.
B
3
S
1
G
3
Posts: 105
Reputation: 1,312

Post » Sun Jan 16, 2011 6:42 pm

Care to share your results? :D
Check out my VGM on my soundcloud page!
Video-Game Music: E.C.2151
B
7
S
2
G
2
Posts: 193
Reputation: 1,561

Post » Sun Jan 16, 2011 6:53 pm

[quote="Emperor Ing":34hli8zb]Care to share your results? :D[/quote:34hli8zb]
yeah, i am kind a interested too

EDIT:
okey i actualy find my answear lol. as always it was in front of my nose shining with obviousity.
but i havent tested it so far.
RTS+8Direction behaviour(setting 8dir with just 4direction)
ImageImageImageImage
B
26
S
7
G
7
Posts: 572
Reputation: 6,097

Post » Mon Jan 17, 2011 9:43 am

[quote="irbis":12d49uwx][quote="Emperor Ing":12d49uwx]Care to share your results? :D[/quote:12d49uwx]
yeah, i am kind a interested too

EDIT:
okey i actualy find my answear lol. as always it was in front of my nose shining with obviousity.
but i havent tested it so far.
RTS+8Direction behaviour(setting 8dir with just 4direction)[/quote:12d49uwx]

Nope, I tried that too and it didn't work.

In the end I just used the rts object but had a few events that made it so it had only 4 directions. It still can move diagonally but after making it I found that this effect works better for my game anyway.
B
3
S
1
G
3
Posts: 105
Reputation: 1,312

Post » Mon Jan 17, 2011 10:00 pm

[quote="Chezzy":1r7sl6bw][quote="irbis":1r7sl6bw][quote="Emperor Ing":1r7sl6bw]Care to share your results? :D[/quote:1r7sl6bw]
yeah, i am kind a interested too

EDIT:
okey i actualy find my answear lol. as always it was in front of my nose shining with obviousity.
but i havent tested it so far.
RTS+8Direction behaviour(setting 8dir with just 4direction)[/quote:1r7sl6bw]

Nope, I tried that too and it didn't work.

In the end I just used the rts object but had a few events that made it so it had only 4 directions. It still can move diagonally but after making it I found that this effect works better for my game anyway.[/quote:1r7sl6bw]
can you give more details perhaps?
or an example cap?
ImageImageImageImage
B
26
S
7
G
7
Posts: 572
Reputation: 6,097

Post » Tue Jan 18, 2011 7:46 pm

B
4
S
1
G
3
Posts: 10
Reputation: 1,070


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 9 guests