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 20:45, 25 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,720 articles

Website


Text

Color Rectangle

Image

Swf

Variables

Integer

String

Number

True/False

Visibility Group

Triggers

Events

Click a display object

System Variable Changed

Game Finished Loading

Conditions

Compare Numbers

Compare Booleans

Not

Is

Is Current Menu

Is Not Current Menu

Text Comparison

Does Save State X Exist

Is the game Loaded

Actions

Set Variable

This is used to set or change user created variables.

Example
set integer= 1 set number= 1.234 set string= Hello set True/False= True



Change Menu

This is used for menu navigation.


For example:

Set current menu to: Main Menu

Update Visual Item

This is used to change a menu item from visible to invisible, or from invisible to visible.

For example:

Set background to visible

Move Menu Item

This is used to change the location on the screen of a menu item.

For example:

Move background to 100 : 100

Change Bitmap Dimensions

This is used to stretch or shrink color rectangles created inside ArtistGameMaker.

For example:

Change square bitmap width: 100 height: 100

Stretch Image Dimensions

Update Text

This is used to update text fields created in the game.

For example:

Set gold<text>'s text to 0

Run Trigger

This is used to run a new trigger within the current trigger.

For example:

Run trigger: any.user.created.trigger

Run Trigger After X Seconds

This is the same as run trigger, but can be set on a delay.

For example:

Run trigger: any.user.created.trigger after 3 second(s)

If/Then

If/Then/Else

If/And/Then

If/And/Then/Else

Goto URL

Save State

This is used to save the game.

For example:

Save the state of the game in slot: 1

Load State

This is used to load the game.

Load the state of the game in slot: 1

Save String

Audio Manager- Play Audio

Audio Manager- Play Audio Once

Audio Manager- Stop Audio

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