The Dink Network

Help plz

September 3rd 2009, 10:37 AM
goblinh.gif
thor
Peasant He/Him United Kingdom
whos afraid of the big bad duck 
Hi
Anyone able to help, I need to create a barrier at a door so Dink can leave but not re-enter before a point in the story is met, I cant think how to work the script so any scripting help would be greatly apreciated.
Thanks!
September 3rd 2009, 10:46 AM
slimeg.gif
metatarasal
Bard He/Him Netherlands
I object 
Place something like this in a script on the screen:

void main( void )
{
if (&story < 3)
{
int &sprite = create_sprite(<x>,<y>,0,<sequence>,<frame> );
sp_hard(&sprite,0);
sp_nodraw(&sprite,1);
draw_hard_sprite(&sprite);
}
}


When the variable &story is less than three this script will place an object with <sequence> and <frame> at a position defined by <x> and <y> and makes it hard.
September 3rd 2009, 10:49 AM
goblinh.gif
thor
Peasant He/Him United Kingdom
whos afraid of the big bad duck 
Thanks
And then could i remove it in the same way but reversed if you know what i mean?
September 3rd 2009, 10:51 AM
goblinh.gif
thor
Peasant He/Him United Kingdom
whos afraid of the big bad duck 
Sorry misunderstud your reply i thought you had put > not <. nooooob
thanks again
September 3rd 2009, 10:54 AM
goblinh.gif
thor
Peasant He/Him United Kingdom
whos afraid of the big bad duck 
In fact it didnt even occur to me that i could use if story is less than!! makess things much simpler! lol