You can either,
a:set a global to"red,blue,purple,yellow,orange", then pick a token in that string with getToken(int(random(5)),",").... comma is the delimiter.
B: Use the system expression choose, like choose(red,blue,purple,yellow,orange)
A few plugs deal with that, or make your own.
Yes its all doable.
Leader boards would be about as complicated as they are in C2, as in there is no pre-made mechanism.
You can create as many of the Array object as you like at runtime, as well as access them using pick nth, and array(index).
Develop games in your browser. Powerful, performant & highly capable.
Dx9 is required for CC to run, so obviously its installed, otherwise the program wouldn't run.
I too have Avast installed, and the sandbox feature kicks in from time to time. It has nothing to do with the antivirus. The sandbox is there for programs you aren't sure about.
Seems the trigger for on object clicked/ touched is being registered past its event.
http://dl.dropbox.com/u/666516/objectclickntouchbug.capx
In the cap I used the touch object with use mouse enabled, but also tested with the mouse object, same result.
Testing with the system wait resolved the issue.
The expected behavior is one click add 1 to a gv, and then compare that gv for something else.
It just complicates things imo. No reason to have the player sprite in a menu layout, etc.
Global variables should work nicely, I'd stay away from global objects however.
That depends on if you have a bunch of scrolling going on.
If so I would go to different layout. Plus you have to optimize for the number of objects in a layout. Terrain, menu, etc can add up.
Hard to say given the one in CC was, well... pretty bad.
The simplest method would be to use the pin behavior, and have the menu items, either created/ destroyed, or made visible/ invisible.
That with toggling variables to Boolean comparisons, and using timescale for individual items should be pretty straight forward.
Correct, you can place those comparisons as sub events, or place them in the same condition if you want to carry over a logical "and".
Member since 12 Nov, 2008