How to make the AI have random movement?

For questions about using Classic.

Post » Sat Apr 10, 2010 4:43 pm

And when the player reaches a certain distance, the AI chases the player.
B
1
G
2
Posts: 2
Reputation: 629

Post » Sat Apr 10, 2010 5:30 pm

Could you offer more information? You didn't even say what kind of game it is or what view...
B
2
S
2
G
2
Posts: 372
Reputation: 1,794

Post » Sat Apr 10, 2010 7:25 pm

Top-down view.
B
1
G
2
Posts: 2
Reputation: 629

Post » Sun Apr 11, 2010 12:47 am

The monster will chase you when you get within 300 pixels.

V 99.84
Using: RTS and LOS

Example removed


This is what you asked for but I will try and improve it
B
28
S
8
G
8
Posts: 530
Reputation: 7,149

Post » Sun Apr 11, 2010 1:14 am

Here the monster has a path and when it sees you it will chase you. Once you are out of it's sight it returns to its path.

The monster gets a little wonky when it returns to restart the path. Can any one improve this?

V 99.84
Using: RTS and LOS
plugin: Path Movement

Example removed
B
28
S
8
G
8
Posts: 530
Reputation: 7,149

Post » Sun Apr 11, 2010 1:18 am

Could try Grid Movement with NPC setting and Wander turned on.
B
2
S
2
G
2
Posts: 372
Reputation: 1,794

Post » Sun Apr 11, 2010 1:44 am

Dj vu I think I've seen this before...

Ah here it is:
[url:1o4wpcsq]http://www.scirra.com/forum/viewtopic.php?f=3&t=5999&hilit=rts+path[/url:1o4wpcsq]

And I still like the solution I presented there.
B
79
S
24
G
52
Posts: 4,724
Reputation: 39,711

Post » Sun Apr 11, 2010 2:16 am

Smacks his head. Gaaaaaaaaa

Your the man R0J0hound, I lost that and could not find it. Much more elegant solution.
B
28
S
8
G
8
Posts: 530
Reputation: 7,149

Post » Mon Jun 17, 2013 8:43 pm

[QUOTE=R0J0hound] Dj vu I think I've seen this before...

Ah here it is:
[url:1o4wpcsq]http://www.scirra.com/forum/viewtopic.php?f=3&t=5999&hilit=rts+path[/url:1o4wpcsq]

And I still like the solution I presented there.[/QUOTE]


Can you repost the link to the topic because this link is broken
B
2
Posts: 1
Reputation: 257


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 1 guest