- 94
- Posts
- 11
- Years
- Seen Sep 18, 2023
Can someone give me an example how a script can look like( in Firered) Wjere you can see a Boat driving , that brings you to another location? (Like in Emerald with the old man and it pecko.)
I don't remember much, but I think in emerald, the boat script used spriteinvisible and gave the player and boat the same movements. Maybe that could be useful?
#dynamic 0x740000
#org @start
lockall
faceplayer
msgbox @m1 MSG_KEEPOPEN
closeonkeypress
// Do stuff to get the player and the boatman "on" the boat
// Now, this hides the player and does some movement
spriteinvisible 0xFF 0x<your_map_bank> 0x<your_map>
applymovement 0x<boat> @mov1
applymovement MOVE_PLAYER @mov1
waitmovement 0x0
// Do more moving and such
spritevisible 0xFF 0x<new_map_bank> 0x<new_map>
msgbox @m2 MSG_KEEPOPEN
releaseall
end
#org @m1
= Let's go for a boat ride!
#org @m2
= We made it!
#org @mov1
#raw 0x10
#raw 0x12
// Just a generic move goes here
#raw 0xFE