metapod23
Hardened Trainer
- 673
- Posts
- 16
- Years
- Seen Aug 18, 2016
Okay, so I've reworked my script, and thanks to pokepal and cooley's expert guidance, the sprite will actually move correctly now. The only problem is that he reappears every time I exit the map... I've set his people number to 0001, so what have I messed up this time?
Thanks for the help guys, here's the script.
EDIT: The sprite's event number is also 1, second-to-top Unknown is 3, and Movement is 11.
This script takes place exactly one tile in front of the center warp into Viridian Forest (from route 2). The person I use in it is standing just to the left of the kid who says he and his friends are here to catch Bug Pokemon. If you like, enter the script and a sprite into your own ROM and test it for yourself; you'll see what I mean.
It would also be great if someone could write their own script for this scenario and show me, so I can see exactly how I'm supposed to do it. I can't figure out what I'm doing wrong and it's driving me insane.
Oh, and this is a side note, but I can't edit walking frames into the sprite. I saved this sprite over a sprite that doesn't normally move at all, so if I try to make a walking frame, it duplicates it over his standing frame. How do I fix that?
Spoiler:
#dynamic 0x800000
#org @gym1tipoff
checkflag 0x01
if 0x1 goto @done
applymovement 0x01 @move1
waitmovement 0x0
applymovement 0xFF @moveplayer
waitmovement 0x0
msgbox @tipoff 0x4
applymovement 0x01 @move2
waitmovement 0x0
hidesprite 0x01
fadescreen 0x1
fadescreen 0x0
setflag 0x01
release
end
#org @done
release
end
#org @move1
#raw 0x62
#raw 0x0C
#raw 0x0C
#raw 0x0C
#raw 0x4A
#raw 0xFE
#org @move2
#raw 0x60
#raw 0xFE
#org @moveplayer
#raw 0x02
#raw 0xFE
#org @tipoff
= Listen carefully. I have an\ninvitation for you from Brock,\lformer leader of Pewter City's\lgym. He saw your run-in with\lthat Rocket Grunt on Route 1\land he wants to see just how\lgood you are.\pHe's hiding somewhere in this\nforest. Finding him is your\lfirst test. Good luck!
Sorry if I'm asking too many questions at once...
Did you assign a flag number to the sprite you want to hide under PERSON ID? Like, try assigning 1000 to it, then put setflag 0x1000 in your script.