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 2nd 2010, 09:52 AM
slayer.gif
rabidwolf9
Peasant He/Him United States
twitch.tv/rabidwolf9 
I've looked into the player 2 script and I notice you've used wait() commands in the attack and hit procedures. This could cause problems and I have a hunch that the one in the hit procedure may be causing the bug.

If the sprite is hit during the wait() period (I know it's small and seems ridiculous but it still happens sometimes) then that procedure would be interrupted by the hit procedure starting.

If a wait() command is absolutely necessary for something like checking to see if the hit killed the monster or updating the p2 life variable after damage has been calculated, it should be done in a spawned script so there are no interruptions.