📧 Message Board Archive

Help me with the gate-script, plz
I use the following script to open a castle gate, but when I test it, it opens about 2 cm ( 1,5 ins) to the left of where it suposed to be opened.

Can someone plz, tell me what's wrong?:



void main(void)

{

}



void talk( void )

{

freeze(1);

say_stop("Knock, knock... ", 1);

say_stop("'4Who is there? ", &current_sprite);

say_stop("Dink Smallwood ", 1);

say_stop("'4Ok, come in... ", &current_sprite);

move_stop(1, 6, 499, 1);

move_stop(1, 4, 497, 1);

wait(1000);

sp_seq(&current_sprite, 68);

playsound(7,22050,0,0,0);

wait(1000);

script_attach(1000);

fade_down();

fill_screen(0);

&player_map = 696;

sp_x(1, 314);

sp_y(1, 370);

load_screen();

draw_screen();

fade_up(void);

&update_status = 1;

draw_status();

move_stop(1, 8, 260, 1);

unfreeze(1);

return;

}

Re: Help me with the gate-script, plz
More info needed. Release a short demo for better chance of help.



Re: Help me with the gate-script, plz
: I use the following script to open a castle gate, but when I test it, it opens about 2 cm ( 1,5 ins) to the left of where it suposed to be opened.



: Can someone plz, tell me what's wrong?:



: void main(void)

: {

: }

: void talk( void )

: {

: freeze(1);

: say_stop("Knock, knock... ", 1);

: say_stop("'4Who is there? ", &current_sprite);

: say_stop("Dink Smallwood ", 1);

: say_stop("'4Ok, come in... ", &current_sprite);

: move_stop(1, 6, 499, 1);

: move_stop(1, 4, 497, 1);

: wait(1000);

: sp_seq(&current_sprite, 68);



This is the line that draws my attention too.

What (p)seq did the sprite start with? Because if it wasn't already 86 then it may appear to "teleport" when you chance it. (if that's what you're saying it does, I'm not totally sure)



: playsound(7,22050,0,0,0);

: wait(1000);

: script_attach(1000);

: fade_down();

: fill_screen(0);

: &player_map = 696;

: sp_x(1, 314);

: sp_y(1, 370);

: load_screen();

: draw_screen();

: fade_up(void);

: &update_status = 1;

: draw_status();

: move_stop(1, 8, 260, 1);

: unfreeze(1);

: return;

: }
Re: Help me with the gate-script, plz
Hi. I didn't bother to read the whole script (it was too long you know ;) ) but the reason could be that you don't have sp_frame(&current_sprite, 1); after sp_seq(&current_sprite, 68);. I'm not starting to explain why is it like this but.. Ok, i don't know. :) But at least i know that sp_frame(&current_sprite,1); sometimes needs to be added after sp_seq.



sp_seq(&current_sprite, 68);

sp_frame(&current_sprite, 1);

No, still doesn't work,
Nope, it still doesn't work;

sp_frame(&current_sprite, 1);



Re: No, still doesn't work,
There is a difference between sp_pframe and sp_frame.  The second merely displays an animation, but since you probably have the brain set correctly...



I think scratcher was right.
Re: No, still doesn't work,
I have tried it, but it doesn't work, I have been working on this for about a half year...



I think I will just leave it this way, and when the demo, Dink Blackwood 2, comes out, maybe someone will help me then.



But all the help now is good too!!!



   :)    :(    ;(    :p    :o    ;)