; This is a Generic Create Function Function Create(Me().BasicObject,Element) ; Check if element is not currently in use if Me(Element).Status=False ; Set this element Status to True (in use) Me(Element).Status=True Me(Element).Score=0 ; Grab this objects sprite and initialize it for use SpriteIndex=GetFreeSprite() Me(Element).SpriteIndex=SpriteIndex CreateSprite Me(Element).SpriteIndex endif EndFunction ; This is a Generic Position Function Function Position(Me().BasicObject,Element,X#,Y#) ; check if the element is created if Me(Element).Status ; set the X & Y positions in the array Me(Element).X#=X# Me(Element).Y#=Y# ; Set it's associated sprites position also PositionSprite Me(Element).SpriteIndex,x#,y# endif EndFunction