Jump to content
  • 0
Sign in to follow this  
Alayne

Moving monsters

Question

Hi guys!

 

Here's a little question I got.

I'm currently working on a script which should turn into a tower defense mini game.

When entering the game, a random count of monsters (1 id, several monsters) are spawned and should walk toward a given point (npc GID or corrdinates).

If they reach the point, you loose.

 

Actually the script works pretty well on each point...except the walking part.

I'm able to force monsters to walk using unitwalk, but not for more than 20 cells in a direction.

 

From then, several points:

 

1) I can increase the cell count. Would probably takes lot of mem to calculate the path, and that's not really a good point

2) I can set n npcs along the path, but then, I'll need the GID of each touching monster to send it to npc n+1. But there's no way I can get this GID except at spawn, and I can't bind them to "touching npc" ones.

3) I can simply suicide myself...

 

Does anybody have an idea on how I can manage that problem?

 

Thanks!

Edited by Alayne

Share this post


Link to post
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.