OwnerOfSuccuby Wrote:Sorry for my curiosity, but what is the problem with AS2 ?
KaTsuO_O Wrote:I got a simple puzzle game idea.
You play in overview and your goal is to get from point A to B in the levels. The core mechanic would be that there is different layers of the level and you can only see one of them at the time. So, first layer might have where you can walk, the main platform and then the second one might have enemies or other dangerous obstacles. You can switch between them but every time you do that you'll get a cool down for like three to five seconds so it's not possible to just keep switching between them which would make it too easy. There would also be a time limit so you can't just play it safe.
In later levels you'll have enemies that moves in patterns and parts of the floor disappearing or moving to make it challenging.
I don't know how good of a programmer you are so if you need to know how to do those kind of things, let me know.
Terrantor!!! Wrote:OwnerOfSuccuby Wrote:Sorry for my curiosity, but what is the problem with AS2 ?
Well I establish _global variables on frame 1 of the main stage and I'm trying to use buttons to add and subtract the _global values. I don't know if I'm addressing the variable properly in the sub-movieclip object or if the dynamic text is properly refreshing itself.
On frame1 of the main timeline I have a quantity that records the day number: _global.dayq=1;
For example the the actionscript is located on a button within a movie clip and goes as follows : on(release) { _global.dayq += 1;}
On frame2 of the main timeline I have a code linking to dynamic text also placed on the main stage: daystat.text = "Day " string(_global.dayq);
trunks2585 Wrote:So now we've gone from having ideas and asking for help with them, to not even having ideas anymore, we've hit rock bottom. *rimshot* j/k.
OwnerOfSuccuby Wrote:Terrantor!!! Wrote:OwnerOfSuccuby Wrote:Sorry for my curiosity, but what is the problem with AS2 ?
Well I establish _global variables on frame 1 of the main stage and I'm trying to use buttons to add and subtract the _global values. I don't know if I'm addressing the variable properly in the sub-movieclip object or if the dynamic text is properly refreshing itself.
On frame1 of the main timeline I have a quantity that records the day number: _global.dayq=1;
For example the the actionscript is located on a button within a movie clip and goes as follows : on(release) { _global.dayq += 1;}
On frame2 of the main timeline I have a code linking to dynamic text also placed on the main stage: daystat.text = "Day " string(_global.dayq);
If i understand you - you want to change Main Variable ? If you put this to any where in AS2 (any buttons other objects and etc. and script will be executed):
_root.MyVar="xxx111";
And write any where trace(_root.MyVar) - it will wright you xxx111. So you can see _root.YourVariable anywhere you want.
If you write it with out _root. in any object not root - it will not wright you xxx111.
I work with it by this way. The same for AS3 with a little difference. (viewtopic.php?f=29&t=2370)
Users browsing this forum: No registered users