twitchie's Profile
Love to play Dink. Love football, hunting, fishing, computers . . . and Dink, of course!
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!
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
Title | File | Type | Score | Date |
---|---|---|---|---|
I Am One of the People This Type of File is Designed For | Rudiments of Scripting (The) | Normal | ![]() | November 6th, 2002 |
Pop has the Makings of a Great Quest Or Epic if the Builder Wants To Build on it | Pirates of Portown | Normal | ![]() | October 24th, 2002 |
This is the Best Dmod I've Played | Dinky Dimensions 1: FIAT | Normal | ![]() | February 28th, 2002 |
Overall | Secret of Parizaya | Normal | ![]() | December 7th, 2001 |