Jump to content

User:Trultz/sandbox

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Trultz (talk | contribs) at 01:37, 26 October 2013. The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

Plugins Exporting

Welcome to the ArtistGameMaker wiki,
The ultimate source of information about ArtistGameMaker.
blablabla
Much of the content here is copyright ArtistGameMaker
7,003,726 articles

Website


Wikipedia editing tutorial – Introduction

Wikipedia is a collaboratively edited encyclopedia to which you can contribute. This tutorial will help you become a Wikipedia contributor.

The following pages will give you guidance about the style and content of Wikipedia articles, and tell you about the Wikipedia community and important Wikipedia policies and conventions.

This is a basic tutorial, not an extensive manual. If you want more details, there are links to other pages for more information. To read them as you go along, you can open them in a separate browser window or tab.

There are links to "sandbox" pages where you can practice what you're learning. Try things out and play around! Nobody will mind if you mess up and experiment in these practice areas.

So, let's learn about editing!

Note: The tutorial assumes you are using the default page layout. If you're logged in and have changed your preferences, the location of links may differ.




Variables System Variables Custom Variables

Plugin Variables

Menus Menu Items

VariableBase Complex Codes

FunctionBase BuilderEnglishCode

Creating Plugins

Player

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
beforePreloader()
afterPreloader()
loadItem(node:XML):ItemBase

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

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

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

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

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

Singleton Settings

Exporter

Loader