Announcement: Be excellent to each other.


Caravel Forum : Caravel Boards : Development : Move order problem with new enemy
New Topic New Poll Post Reply
Poster Message
ArchMageOmega
Level: Roachling
Rank Points: 9
Registered: 05-26-2005
IP: Logged
icon Move order problem with new enemy (0)  
I'm trying to implement a new enemy (a black eye that responds to movement instead of just the player) but it has some issues with move order. So far, I can't think of a way that makes it completely consistent regardless of the order the enemies move in.

An example of the problem would be to have a line of them (running up and down) all facing to the side.

(P-Player, 1234-Eyes, R-Roach, - -Gaze Line)

Step 1:
......P..     ......P..
1........     4........
2........     3........
3........     2........ 
4........     1........
...R.....     ...R.....

Step 2:
......P..     .4....P..
1........     .3-------
2........     .2-------
34.......     .1------- 
.--R-----     .--R-----
.........     .........



Can anyone think of a way to implement this enemy that doesn't create a dependence on move order?


06-04-2005 at 10:13 PM
View Profile Send Private Message to User Show all user's posts Quote Reply
schep
Level: Smitemaster
Avatar
Rank Points: 864
Registered: 03-01-2005
IP: Logged
icon Re: Move order problem with new enemy (0)  
ArchMageOmega wrote:
Can anyone think of a way to implement this enemy that doesn't create a dependence on move order?
What if you change your black eyes so that on the turn they see something, they activate but don't move? That means the player can step right in front of them while they're asleep, so they're more dangerous than simple evil eyes in some ways and less dangerous in others.

06-06-2005 at 03:05 AM
View Profile Send Private Message to User Send Email to User Show all user's posts This architect's holds Quote Reply
ArchMageOmega
Level: Roachling
Rank Points: 9
Registered: 05-26-2005
IP: Logged
icon Re: Move order problem with new enemy (0)  
I did try that and it helped but it doesn't get rid of the problem completely. (Although, unless the room required them to move in very specific ways, you probably wouldn't notice.)

(Once I make it so they respond to actual motion instead of just seeing something, it will fix one of the biggest problems with making them wait a turn.)

If I wanted to let other people look at these enemies, does anyone know where I would put my code for them?
06-06-2005 at 09:33 AM
View Profile Send Private Message to User Show all user's posts Quote Reply
New Topic New Poll Post Reply
Caravel Forum : Caravel Boards : Development : Move order problem with new enemy
Surf To:


Forum Rules:
Can I post a new topic? No
Can I reply? No
Can I read? Yes
HTML Enabled? No
UBBC Enabled? Yes
Words Filter Enable? No

Contact Us | CaravelGames.com

Powered by: tForum tForumHacks Edition b0.98.8
Originally created by Toan Huynh (Copyright © 2000)
Enhanced by the tForumHacks team and the Caravel team.