📧 Message Board Archive

Help!
What's wrong with this script? It works otherways, but Dink's x and y won't change.



void main(void)

{

preload_seq(761);

preload_seq(763);

preload_seq(767);

preload_seq(769);



preload_seq(781);

preload_seq(783);

preload_seq(787);

preload_seq(789);



if (&story == 0)

{

sp_base_death(1, 805);

sp_base_idle(1, 800);

sp_base_walk(1, 800);

sp_base_attack(1, 790);



add_item("item-gaxe",454, 1);

&cur_weapon = 1;

arm_weapon();



freeze(1);

playmidi("pirate.mid");



int &crap = create_sprite(430, 280, 0, 761, 4);

 sp_base_walk(&crap, 760);

 sp_speed(&crap, 3);

 sp_timing(&crap, 0);



int &crup = create_sprite(370, 280, 0, 787, 2);

 sp_base_walk(&crup, 780);

 sp_speed(&crup, 3);

 sp_timing(&crup, 0);



int &crop = create_sprite(420, 170, 0, 761, 3);

 sp_base_walk(&crop, 760);

 sp_speed(&crop, 3);

 sp_timing(&crop, 0);



sp_x(1, 430);

sp_y(1, 220);




move_stop(1, 4, 150, 1);

freeze(1);

move_stop(&crop, 2, 220, 1);

move_stop(&crop, 4, 200, 1);

move_stop(&crop, 2, 280, 1);

move_stop(&crup, 8, 220, 1);

move_stop(&crup, 4, 200, 1);

move_stop(&crap, 8, 220, 1);

move_stop(&crap, 4, 250, 1);

wait(500);

sp_dir(1, 6);

say_stop("Ok.. I think that one of us need to stay here", 1);

say_stop("and protect the ship. ", 1);

wait(500);

say_stop("i suggest you can do it, glog? ", 1);

wait(1000);

say_stop("'7Shur. ", &crap);

wait(1000);

say_stop("Ok. To find My tribe fastest, we'd better separate.", 1);

wait(500);

say_stop("Rebg, you check the western coast.", 1);

wait(500);

say_stop("'9Ok. ", &crup);

wait(500);

say_stop("Godl, can you check the eastern beach?", 1);

wait(500);

say_stop("'6My pleasure. ", &crop);

wait(500);

say_stop("I will check the middle land, we meet here after", 1);

say_stop("we've done our investigations.", 1);

wait(1500);

say_stop("Ok, let's get going then.", 1);

wait(500);

move_stop(&crup, 4, 150, 1);

move(&crup, 2, 600, 1);

say_stop("'9Good luck to all of you!", &crup);

move_stop(&crup, 2, 600, 1);

sp_active(&crup, 0);

move(&crop, 2, 600, 19);

say_stop("'6Bye! See you soon!", &crop);

move_stop(&crop, 2, 600, 19);

sp_active(&crop, 0);

wait(1000);

&story = 1;



&update_status = 1;

draw_status();



move(1, 2, 1000, 1);

say_stop("Bye bye then, Glog! ", 1);



kill_this_task();

return;



}
Hmm...
Interesting, maybe you could try moving the moving the sp_x() and sp_y() to an earlier possition in the script, like right after the 'if' statement.  Sometimes DinkC can be picky about the order of things in a script.  I'm not sure if this'll work, but at least it's worth a shot.



Re: Hmm...
: Interesting, maybe you could try moving the moving the sp_x() and sp_y() to an earlier possition in the script, like right after the 'if' statement. Sometimes DinkC can be picky about the order of things in a script. I'm not sure if this'll work, but at least it's worth a shot.



I tried, but it doesn't work. Well, i kinda "fixed" that script anyways, i changed another script so that it will do the x & y things, so i didn't fix this script, but now at least Dink's position will change. Thanks