Create
Create

Creates a new graphical object instance.

myInstance = myJAM.Create( Object_Class, X, Y )
myInstance = myJAM.Create( Object_Class, X, Y, Width, Height )
myInstance = myJAM.Create( 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. This position is effected by scrolling
  • Y
    The y co-ordinate to create the object at relative to the top-left of the screen. This position is effected by scrolling
  • 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 backgrounds and behind the foregrounds. CreateGUI should be used to create objects above the foregrounds. GUI objects will not be effected by scrolling.

See also
JAM:CreateGUI



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