Registrarse

Problem about my Level Script

Estado
Cerrado para nuevas respuestas.

jiangzhengwenjz

Usuario mítico
As I tried level script these days, I encountered a huge problem about movesprite/movesprite2 command.

The problem is that the Overworld of Gary appeared after the first message box, but obviously it should appear as soon as the hero enters the map. I use movesprite2 command for moving GARY from the top of the map (In advanced map) to the place the player should see him.

And here's the code I wrote: (Detailed strings and movements are right so I don't show them)
#org @start
movesprite2 0x8 0x1D 0x20 'Move GARY's OW
lockall
msgbox @String1 MSG_KEEPOPEN 'The first message
closeonkeypress
fadescreen 0x3 'make the screen white
fadescreen 0x2 'make the screen back
special 0x113 'freeze the camera
applymovement MOVE_CAMERA @move1 'The move_camera part
waitmovement 0x0
special 0x114 'release the camera
applymovement 0x8 @move2 'Gary's "!" symbol above his head
waitmovement 0x0
msgbox @String2 MSG_KEEPOPEN 'Gary's words
closeonkeypress
applymovement 0x8 @move3 'Gary went out of the screen
waitmovement 0x0
hidesprite 0x8 'Hide Gary
setflag 0x3021 'Hide Gary permanently, cleared by another level script outside the cave
applymovement MOVE_PLAYER @move4 'Move the player to Celebi
waitmovement 0x0
setvar 0x4037 0x1 'Prevent the level script from being activated the second time
'=====================below is the battle part, with no problem.
lockall
faceplayer
showpokepic 0xFB 0x3 0x3
msgbox @String3 MSG_NORMAL
cry 0xFB 0x0
hidepokepic
wildbattle 0xFB 0x1E 0x8B
fadescreen 0x1
fadescreen 0x0
hidesprite 0x7
setflag 0x301B
releaseall
end
Hope someone can help. Great thanks.
 

Sayer301!

UnityLord!
Miembro de honor
Well, my english is the worst english than you can read ever.

The problem have a easy solution, make another script of type 03, it only should contains the movesprite, this type of script level, charge before that the map, an another scripts.

Sorry for my bad english and blabla XD
 
Estado
Cerrado para nuevas respuestas.
Arriba