YesNoOk
avatar

ScreenBound (SCTRL) (Read 3669 times)

Started by Odb718, October 07, 2015, 12:38:14 PM
Share this topic:
ScreenBound (SCTRL)
#1  October 07, 2015, 12:38:14 PM
  • *****
  • Shame on you!
    • USA
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.

Required parameters:
none
Optional parameters:
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.
Examples:
Code:
;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

Note:
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.
vVv Wheat Stage Released vVv