The Dink Network

Bad pic error?

January 29th 2003, 05:15 AM
pq_frog.gif
Ric
Peasant They/Them Canada
 
I need to create_sprite a dead body off screen move it on screen, but after getting v 1.07, Dink gives me this bad pic error. How can I get around that?
January 29th 2003, 09:16 AM
sob_scorpy.gif
Tyrsis
Peasant She/Her Russia
 
: I need to create_sprite a dead body off screen move it on screen, but after getting v 1.07, Dink gives me this bad pic error. How can I get around that?

Bad pic error can be fixed by using preload_sequence before creating a sprite (of course if there is such sprite# in the sequence).

January 29th 2003, 05:09 PM
pq_frog.gif
Ric
Peasant They/Them Canada
 
: : I need to create_sprite a dead body off screen move it on screen, but after getting v 1.07, Dink gives me this bad pic error. How can I get around that?

: Bad pic error can be fixed by using  preload_sequence before creating a sprite (of course if there is such sprite# in the sequence).

Thanks, but no thats not it. It creates o.k. if I start it on the screen, but it won't creat off screen:

int &body = create_sprite(-100,-100,9,385,1);

if I locate it at (100,100....) it's fine.
January 30th 2003, 01:23 AM
sob_scorpy.gif
Tyrsis
Peasant She/Her Russia
 
Try this - it works fine for me

&_basex = -100;

&_basey = -100;

&newspr = create_sprite(&_basex,&_basey, 9, 32, 1);

sp_speed(&newspr,1);

sp_hard(&newspr,1);

January 30th 2003, 06:15 PM
pq_frog.gif
Ric
Peasant They/Them Canada
 
: Try this - it works fine for me

:  &_basex = -100;

:  &_basey = -100;

:  &newspr = create_sprite(&_basex,&_basey, 9, 32, 1);

:  sp_speed(&newspr,1);

:  sp_hard(&newspr,1);

Nice, I'll use that for random locating, but it didn't help. The debug log has been calling it sprite 0, and can't deal with it. I don't know how creat_sprite can create sprite # 0. >
January 30th 2003, 09:00 PM
sob_scorpy.gif
Tyrsis
Peasant She/Her Russia
 
: Nice, I'll use that for random locating, but it didn't help. The debug log has been calling it sprite 0, and can't deal with it. I don't know how creat_sprite can create sprite # 0. >

It couldn't create it - either there is an error in seq# or frame# - or you need preload_seq.

No other ideas, sorry
February 1st 2003, 12:12 PM
pq_frog.gif
Ric
Peasant They/Them Canada
 
I change the name of the variable and now it works. I just wish the dink engine was more consistant. But when it does work its great. Thanks anyhow.