The Dink Network

TPA Script problem

July 26th 2009, 09:32 AM
goblinh.gif
mkbul
Peasant He/Him Greece
TPA~ 
This is the script:


// Beginning cutscene from The Papyrus Adventures (1st scene of 4)

void main(void)

{

freeze(1);

int &mom = create_sprite(176, 222, 16, 221, 1);
preload_seq(221);

int &dad = create_sprite(429, 154, 16, 411, 1);
sp_base_walk(&dad, 411);
sp_base_idle(&dad, 411);
sp_speed(&dad, 1);
preload_seq(411);
freeze(&dad);

wait(100);
say_stop("`3Dear, Did you got ready Vink's things?", &dad);
wait(100);
say_stop("`4Yes, i still cannot belive it, my son finnaly grew up!", &mom);
wait(200);
say_stop("I heart that!", 1);
wait(100);
say_stop("`4Are you sure you dont wanna eat before you go?", &mom);
wait(100);
say_stop("No mum, we will go by boat, remember?", 1);
wait(100);
say_stop("`3Irene, he is ready, i know him, he is hero like his father!", &dad);
wait(200);
say_stop("`4Dink, you're such a crank!", &mom);
wait(500);
say_stop("Ok, i'm leaving now!", 1);
wait(100);
move_stop("1, 2, 223, 1");
say_stop("`4Hey, you will leave without a kiss?", &mom);
sp_dir(1, 6);
sp_dir(&mom, 4);
wait(100);
say_stop("Uh...right. *kisses*", 1);
wait(200);
say_stop("`3Pff...womens", &dad);
unfreeze(&dad);
wait(100);
say_stop("Ok, im leaving now, see ya!!", 1);
move_stop(1, 4, 314, 1);
wait(50);
move_stop(1, 2, 338, 1);
}


When the script runs, everything is ok, until the first move_stop command. When the command comes, the game freezes and you cant do nothing! Any help?
July 26th 2009, 10:30 AM
pillbug.gif
pillbug
Peasant He/Him United States
Love! True love! 
For one thing, the base_walk should always be a multiple of 10. The base_walk right now is 411, change it to 410. You also have quotations in your move_stop command. No! Bad! Take them out!
That's all I can see at the moment.
July 26th 2009, 10:31 AM
slayer.gif
rabidwolf9
Peasant He/Him United States
twitch.tv/rabidwolf9 
Edit
Woops, beat me to it.
July 26th 2009, 10:33 AM
pillbug.gif
pillbug
Peasant He/Him United States
Love! True love! 
Yay! Level up!

Pillbug Speed +1
July 26th 2009, 10:41 AM
goblinh.gif
mkbul
Peasant He/Him Greece
TPA~ 
Does the base_idle also needs to be multiple of 10?
July 26th 2009, 11:00 AM
pillbug.gif
pillbug
Peasant He/Him United States
Love! True love! 
Yeah, it should. Usually everything should be a multiple of 10, that way you can add in the directions. Example: Your guy's base walk of 410 would be able to access all directions, whereas 411 would already have a direction, and could only move in a southwest direction.
July 26th 2009, 11:22 AM
goblinh.gif
mkbul
Peasant He/Him Greece
TPA~ 
Ok, done. I now have a scd problem. When it loads the second move thingy, it skips it all and plays just the other! What do i do?
July 26th 2009, 11:34 AM
pillbug.gif
pillbug
Peasant He/Him United States
Love! True love! 
Can you be a little bit more specific? What exactly does it skip? It doesn't look like there's to much there for it to skip.
July 26th 2009, 11:41 AM
slayer.gif
rabidwolf9
Peasant He/Him United States
twitch.tv/rabidwolf9 
If a move_stop() is being skipped, you may want to recheck the direction/coordinate to make sure they are right.