Topic, Editor Project (AS2)
First post of the topic
Editor Project (AS2)
I've been stumped with my Editor a long time now, and I thought I'd create a class to help me. But, I realised that this may be actually helpful, to most people, who need editors. The only function I have a problem with is the Add(); function.
Download: Editor [V.01].zip (AS2)
How does it work?
It works by extending BonusLevel's MyEditorManager.as and uses many functions to enhance the Editor.
Functions & Arguments:
There are four functions in this (one is a preloader which is optional, as many of JP's games have preloaders as well as the BonusLevel one) class which are:
ArrayName = The name of your Array, NOT in the String format.
JSON = A Boolean value, leave this, I'm still working on it.
Preloader = Your instance name of the MovieClip, NOT in the String format.
TotalWidth = The width of your Preloader MovieClip.
Add(ArrayName, Element:Number, ID:MovieClip, OldID:MovieClip, Type:Number);
ArrayName = See above.
Element = The Element of the Array (example: 0).
ID = The MovieClip you want to add.
OldID = The MovieClip you want to get rid of (if applicable).
Type = The type of Block, Player, Ball, in your Array (example: 1).
Delete(ArrayName, Element:Number, ID:MovieClip);
(Tip: In the Add function, implement a different type for "Element" and it will add the value at the bottom of the Array!)
I hope you find it easier to do things, and suggestions are welcome for V 0.2!