The Dink Network

Reply to Pick the thing up!

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:
 
 
November 15th 2002, 07:33 PM
pq_skard.gif
Hey everyone. Got a question. I write a script that creates a sprite when Dink enters a screen. That part work fine. The sprite I want is where I want it. However, I want Dink to pick the thing up. I modified a potion script using: void touch(void), but Dink just walks over the sprite. I didn't modify the script much as I wanted to go bit by bit to make error testing easier. Here is a snippet. What's wrong?

void main(void)

{

int &exlax = create_sprite(145, 171, 0, 163, 3);

}

void touch( void )

{

say("Cool. Got the exlax.",1);

Playsound(10,22050,0,0,0);

//shrink to this percent then die

int &hold = sp_editor_num(&current_sprite);

if (&hold != 0)

{

//this was placed by the editor, lets make it not come back

editor_type(&hold, 1);

//kill food forever

}

}

Many TIA!