pret / pokeemerald

Decompilation of Pokémon Emerald
2.2k stars 2.36k forks source link

Added fix to Keep the Camera from Making Waves #1987

Closed pkmnsnfrn closed 5 months ago

pkmnsnfrn commented 5 months ago

Implements https://github.com/pret/pokeemerald/wiki/Keep-the-Camera-from-Making-Waves as a BUGFIX, stolen from @tustin2121 with permission. I opted against the invisible option as the camera seems like the more applicable version.

Description

BUGFIX On BUGFIX Off
on off

Testing


// data/maps/InsideOfTruck/scripts.inc
InsideOfTruck_EventScript_MovingBox::
+    warp MAP_PETALBURG_CITY,0
    msgbox InsideOfTruck_Text_BoxPrintedWithMonLogo, MSGBOX_SIGN
    end

// data/maps/PetalburgCity/scripts.inc
PetalburgCity_EventScript_Boy::
+    special SpawnCameraObject
+    applymovement OBJ_EVENT_ID_CAMERA, WalkAway
    lock
    faceplayer
    msgbox PetalburgCity_Text_WaterReflection, MSGBOX_DEFAULT
    closemessage
    applymovement LOCALID_BOY, Common_Movement_FaceOriginalDirection
    waitmovement 0
    release
    end

+ WalkAway:
+    walk_down
+    walk_down
+    walk_down
+    walk_left
+    walk_left
+    walk_left
+    step_end

Discord contact info

I am pkmnsnfrn.