Specifies whether or not the player's movement should be constrained to the screen or not. Also determines whether the camera should move to follow the player or not. The results of this controller are valid for 1 tick.
value = bound_flag (boolean)
If bound_flag is 0, the player will be allowed to move off the screen. If 1, the player is constraing to the screen. Defaults to 0 if omitted.
movecamera = move_x_flag, move_y_flag (boolean, boolean)
If 1, specifies that camera should pan to follow the player in the x direction and in the y direction, respectively. Defaults to 0 in both instances if omitted.
;Locks the player on screen. The Camera will follow it horizontally but not vertically during animation 3000.
[State 3000, StayOnTarget]
type = ScreenBound
trigger1 = anim = 3000
value = 1
movecamera = 1,0
P1 & P2 both need ScreenBound to be active for it to work properly. This means P2 would have to be in a custom hit state.