TPA Script problem
This is the script:
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?
// 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?
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.
That's all I can see at the moment.
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.
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?
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.
If a move_stop() is being skipped, you may want to recheck the direction/coordinate to make sure they are right.