argh
When I`m useing this command to make a goblin hit dink, the goblin suddenly disappears
sp_seq(&gob2, 758);
sp_seq(&gob2, 758);
Did you preload the sequence first?
preload_seq(758);
preload_seq(758);
Nope it didn`t work
Are you sure the goblin attack sequences are in that location in your D-Mod?
Wow, I don't understand DinkC at all . What's does sp_pseq do?
sp_seq lets an objects do that sequence,
//example
int &knight = create_sprite("333, 444, 9, 400, 1);
sp_seq(&knight, 453);
After the sprite is created, the knight will do that sequence I gave him.
I know that the values aren`t correct, it was just to show MiloBones
//example
int &knight = create_sprite("333, 444, 9, 400, 1);
sp_seq(&knight, 453);
After the sprite is created, the knight will do that sequence I gave him.
I know that the values aren`t correct, it was just to show MiloBones
Oh sorry I didn`t se that
December 10th 2004, 03:47 PM
MiloBones
Yah, I should have capitalized (sp_Pseq) or something...
The *updated* DinkC reference gives:
" ManaUser tried to help me out at one point. Perhaps some of his notes will
help: "If sp_seq() is zero (the default), then the sprite is shown with frame
sp_pframe() of sequence sp_pseq(). If sp_seq() is NOT zero, then the sprite
will be shown with frame sp_frame() of sequence sp_seq(), and sp_frame() will
change [at the currently set sp_frame_delay() number of milliseconds]. ...If
you change [sp_frame()], the picture won't change right away but the *next*
frame shown will be the one following the one you set it to.
I cannot confirm any of this. Neither sp_frame() nor sp_Pframe(), whether
used before or after sp_seq(), had any effect on the animation when I wanted
to make three water fountains (seq 94) animate out of sync. It does work in
mag-star.c, however, so I can't explain it."
The *updated* DinkC reference gives:
" ManaUser tried to help me out at one point. Perhaps some of his notes will
help: "If sp_seq() is zero (the default), then the sprite is shown with frame
sp_pframe() of sequence sp_pseq(). If sp_seq() is NOT zero, then the sprite
will be shown with frame sp_frame() of sequence sp_seq(), and sp_frame() will
change [at the currently set sp_frame_delay() number of milliseconds]. ...If
you change [sp_frame()], the picture won't change right away but the *next*
frame shown will be the one following the one you set it to.
I cannot confirm any of this. Neither sp_frame() nor sp_Pframe(), whether
used before or after sp_seq(), had any effect on the animation when I wanted
to make three water fountains (seq 94) animate out of sync. It does work in
mag-star.c, however, so I can't explain it."
anyway sp_pseq is the current picture that being displayed
December 10th 2004, 03:53 PM
MiloBones
Paul is rarely wrong on these things, I imagine. Perhaps Ted had the frame delay too short for his (probably human) eyes to be capable of detecting a difference when he was experimenting with the founatains? I oughta try it...
void main( void )
{
int &gob = create_sprite(320, 64, 0, 761, 1);
freeze(1);
move_stop(1, 8, 170, 1);
say_stop("`6You Dink Smallwood?", &gob);
say_stop("Yeah thats me.", 1);
say_stop("`6Letter Kind Daniel", &gob);
say_stop("`6Wait, I show. Just have to find it.", &gob);
say_stop("I can wait.", 1);
int &gob2 = create_sprite(320, 370, 7, 769, 1);
preload_seq(758);
sp_base_attack(&gob2, 750);
sp_base_walk(&gob2, 760);
sp_speed(&gob2, 1);
move_stop(&gob2, 8, 185, 1);
sp_seq(&gob2, 758);
unfreeze(1);
}
When Gob2 uses sp_seq. He disapears
{
int &gob = create_sprite(320, 64, 0, 761, 1);
freeze(1);
move_stop(1, 8, 170, 1);
say_stop("`6You Dink Smallwood?", &gob);
say_stop("Yeah thats me.", 1);
say_stop("`6Letter Kind Daniel", &gob);
say_stop("`6Wait, I show. Just have to find it.", &gob);
say_stop("I can wait.", 1);
int &gob2 = create_sprite(320, 370, 7, 769, 1);
preload_seq(758);
sp_base_attack(&gob2, 750);
sp_base_walk(&gob2, 760);
sp_speed(&gob2, 1);
move_stop(&gob2, 8, 185, 1);
sp_seq(&gob2, 758);
unfreeze(1);
}
When Gob2 uses sp_seq. He disapears
December 11th 2004, 12:21 PM
MiloBones
Brain 7 is the "show an animation once, then die" brain, as you probably knew.
Thank you so much^^