The Dink Network

Reply to Re: Another problem about external

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 28th 2005, 11:59 AM
goblinm.gif
I had a problem once with my stair drawing procedure (which is attached to a bench and draws a lot of other benches based on the position of the one it's attached to.) It would draw in the stuff it was supposed to, then start putting stuff in the upper left hand corner. Since that's the home of the 0-sprite, I figured that &current_sprite had to become 0. But when I added say("&current_sprite", &junk); commands (&junk was the number retrieved from create_sprite) to the script, ALL of the correctly drawn benches said 42 instead of 2. The benches in the upper left said 0. So, yeah, the bug was easy to fix, I just had the thing return when &current_sprite was 0... but the point is that &current_sprite assumes very strange values after a create_sprite.