Jump to content

User:Trultz/sandbox

From Wikipedia, the free encyclopedia

Plugins Exporting


General Information

Menu

Variables

DUDE

DUDE

Triggers

DUDE

  • 1
  • 2

DUDE

  • 1
  • 2

DUDE

DUDE


Welcome to the ArtistGameMaker wiki,
The ultimate source of information about ArtistGameMaker.
blablabla
Much of the content here is copyright ArtistGameMaker
6,991,476 articles

Website





Variables System Variables Custom Variables

Plugin Variables

Menus Menu Items

VariableBase Complex Codes

FunctionBase BuilderEnglishCode

Creating Plugins

[edit]

Player

[edit]

Name your project and main app file as such: [company][pluginName]Player for example: CallistekAudioManagerPlayer.as


Also keep all of your files and classes in a unique location for example:

com.companyName.artistGameMakerPlugins.AudioManager.*; this way they will not override anything, and will be used when running the main

__constructor
[edit]
beforePreloader()
[edit]
afterPreloader()
[edit]
loadItem(node:XML):ItemBase
[edit]

When the game starts, it will parse the menu items looking for the type that coorelates with it, node.@type == 'yourPluginName-yourMenuItem'

For example:

if(node@type == 'myUniquePluginId-itemType')
 return new UniqueItemType(node);
else
 return null;
tick
[edit]

Set this variable to be a function that will be run every 'tick' as long as this menu is visible

For example:

__constructor__()
{
 tick=myTicker;
}

public function myTicker():void
{
 //code that needs constant updating while menu is visible
}
onShow
[edit]

Set this variable to be a function that will be run when this menu item is 'shown' (when the menu is shown)

For example:

__constructor__()
{
 onShow=myFunction;
}

public function myFunction():void
{
 //code that should be run only once when a menu is shown
}
onHide
[edit]

Set this variable to be a function that will be run when this menu item is 'hidden' (when the menu is hidden)

For example:

__constructor__()
{
 onHide=myFunction;
}

public function myFunction():void
{
 //code that should be run only once when a menu is hidden
}

Builder

[edit]

Name your project and main app file as such: [company][pluginName]Builder CallistekAudioManagerBuilder.mxml

  • builderPlugin.swf will override the playerPlugin.swf so be sure the builder is updated after changing anything it can initiate first

Base

[edit]
Singleton Settings
[edit]

Exporter

[edit]

Loader

[edit]
[edit]