The Dink Network

Reply to Re: New D-Mod: Day of the Carcass

If you don't have an account, just leave the password field blank.
Username:
Password:
Subject:
Antispam: Enter Dink Smallwood's last name (surname) below.
Formatting: :) :( ;( :P ;) :D >( : :s :O evil cat blood
Bold font Italic font hyperlink Code tags
Message:
 
 
January 4th 2010, 05:11 PM
bonca.gif
Erwin
Peasant He/Him Netherlands
Friendship is magic 
Sometimes, David just stops attacking and runs away/moves to a random location. Is it a (known) bug?

Yeah I know about this and it's a small issue I'll try to fix. If you press 'A' again David will go back to normal.

Hey Erwin, it looks like David is able to dodge attacks in the beginning of the game. He can't be hit! How did you script this, and why?

I wanted to have a smart NPC fighting by your side, one that isn't stupid and one that is as powerful as you are. I got annoyed with other NPCs like Skard in PQ that just stand in an enemies attack out of stupidity. A player dodges attacks, that's how the player stays alive. If you have a NPC fighting with you that you want to keep alive then the NPC has to dodge attacks too else it will die and there won't be anything you can do about it.

How did I script this? I added a bit of code in all the enemies' attack procedures that check if their target is David. If this is true the direction of the monster is remembered and a script will activate. The activated script then moves David a bit towards the direction the monster is facing, dodging the attack.