Storyboard
Storyboard

The storyboard object allows you to create frames and transitions for your game.

Creation
 
StoryboardCreates a new Storyboard object
Functions
 
Frame
GetFrameWidthReturns the width of the frame
GetFrameHeightReturns the height of the frame
Scrolling
CenterCenters the frame at a co-ordinate or object
CenterXCenters the frame horizontally at a co-ordinate
CenterYCenters the frame vertically at a co-ordinate
GetXScrollReturns the current horizontal scroll position
GetYScrollReturns the current vertical scroll position
GetXLeftReturns the left-most point of the visible frame
GetYTopReturns the top-most point of the visible frame
GetXRightReturns the right-most point of the visible frame
GetYBaseReturns the bottom-most point of the visible frame
Count
CountReturns the total number of objects in the main game and GUI
Frame handling
NewFrameCreates a new frame in the project
SwapFrameSwaps the current frame and plays any relevent transitions
RestartFrameRestarts the current frame
NextFrameSwaps to the next frame on the list
PreviousFrameSwaps to the previous frame on the list
RestartRestarts the game
GetCurrentFrameReturns the index of the current frame
TryPasswordChecks a case-sensitive password and jumps to the relavent frame if it matches
Close
CloseEnds the game
Callback
StartOfGameCalled when the game starts
EndOfGameCalled when the game ends
OnMoveCalled when the window is moved
OnMaximizeCalled when the window is maximized
OnMinimizeCalled when the window is minimized
OnSizeCalled when the window is resized
OnDisplayChangeCalled when the display changes
OnSetFocusCalled when the window gets focus
OnKillFocusCalled when the window looses focus
Collision mask
IsClearReturns TRUE if the given point is clear
IsObstacleReturns TRUE if the given point is an obstacle
IsLadderReturns TRUE if the given point is a ladder
IsPlatformReturns TRUE if the given point is a platform
GetMaskValueReturns the mask value at a given point
Full screen
SetFullScreenModeSets the game to fullscreen
SetWindowedModeSets the game to windowed
IsFullScreenReturns TRUE if the game is fullscreen



JAM © 2005 no one in partiular
Project started by David Evans in 2005