CreateGUI
CreateGUI

Creates a new graphical object instance.

myInstance = myJAM.CreateGUI( Object_Class, X, Y )
myInstance = myJAM.CreateGUI( Object_Class, X, Y, Width, Height )
myInstance = myJAM.CreateGUI( Object_Class, X, Y, Width, Height, Extras )

Return value
TRUE if the object was created successfully, otherwise FALSE.

Parameters
  • Object_Class
    A pre-created object defining the class. e.g. Object_Class = New Object_Active(myAnim);
  • X
    The x co-ordinate to create the object at relative to the top-left of the screen
  • Y
    The y co-ordinate to create the object at relative to the top-left of the screen
  • Width
    The width to set the object to (note that some objects may override this setting)
  • Height
    The height to set the object to (note that some objects may override this setting)
  • Extras
    Extra parameters for setting up the object. See the object's documentation for more details
Comments

This function creates an instance of the specified object which will be displayed in the game window, in front of the foregrounds. These objects are not effected by scrolling.

See also
JAM:Create



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