I wonder any better way to set MU_Sprite to be always centered at each frame during camera movement. If you have any good idea, please feel free to share your genius thoughts! Thx!
evbit 9 is the “camera follows moving units” evbit. When set, any units moved through events (through loading or moving for example) will have the camera follow them.
You said EnsureCameraOntoPosition, but your blh is to CenterCameraOntoPosition, which does not take 0 in r0 I think. It uses the parent proc afaik.
Good luck! I look forward to seeing what you come up with.
You might possibly find this reference as useful, but probably not:
This is something I wrote for the AI to do other stuff. We tell the AI to wait at some square, and as soon as they are performing the wait action, I do a bunch of custom stuff for modular summon. I think that looking at what the AI does might possibly be helpful. But it might be too hard to understand.
Just as you said, Set Evbit_9 can indeed make the camera move with the MoveUnit. For this reason, I checked the proc tree and found that gProc_CameraMovement acturally no longer exists during Evnt-Move-Unit.
It is another proc, “gProc_MapTask” control the camera by calling function “SetBgPosition” (0x800148C+1) inside _6C_CALL_ROUTINE (0x8019D28+1),
In contrast, there happens to be a place to control the effect of this function in MU6C, we just need to insert a judgement for our own proc (here to be my Freemovement proc) at 0x8078D10: