The Dink Network

Reply to Re: 2 errors in one script, oh my.

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:
 
 
June 17th 2009, 07:07 PM
slimeg.gif
metatarasal
Bard He/Him Netherlands
I object 
As you change the screen the script dies. That's why you don't see the fade_up(); it happens after the draw_screen(); command.

To fix this you need to make sure the script isn't attached to anything (so it doesn't die upon a screenchange). Just insert the line script_attach(1000); somewhere before the draw_screen(); command.

Same story (sort of) with the sound. You have this command: playsound(51,44000,0,1,0); This means that the sound is attached to a sprite (sprite 1). The sprite is killed when you change screens, so the sound is killed as well (I believe).
Just replace the command by playsound(51,44000,0,0,0); and you should be fine.