The Dink Network

twitchie's Profile

Love to play Dink. Love football, hunting, fishing, computers . . . and Dink, of course!

E-Mail mr.snider@gmail.com
Private Message

2002-11-15 19:33:42
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!

twitchie has written 4 reviews

TitleFileTypeScoreDate
I Am One of the People This Type of File is Designed For Rudiments of Scripting (The)NormalExceptional 9.0November 6th, 2002
Pop has the Makings of a Great Quest Or Epic if the Builder Wants To Build on it Pirates of PortownNormalGood 8.6October 24th, 2002
This is the Best Dmod I've Played Dinky Dimensions 1: FIATNormalExceptional 9.5February 28th, 2002
Overall Secret of ParizayaNormalFair 6.7December 7th, 2001