Don't clone. Either use containers to marry the image/slot to the spritefont, or pick it through some means, UID, custom ID - it all depends on how else you've got things organized.
Use Array2.Load(Array1.AsJSON).
You don't need storage to do this.
Develop games in your browser. Powerful, performant & highly capable.
You drag that file onto C2 itself, and it self-installs.
Ethan
Dependencies aren't supported yet. We need the SDK to be flushed out more still.
Need /data
This works: xml.StringValue("/data/enemies/enemy—/animation")
You missing the equals-sign:
<?xml version='1.0'
You need a single root element also:
<?xml version='1.0' ?> <data> <enemies> <enemy id='1'> <animation>cat</animation> <health>2</health> <jumping>false</jumping> <targetplayer>false</targetplayer> <speed>150</speed> <jump>600</jump> </enemy> <enemy id='2'> <animation>bat</animation> <health>1</health> <jumping>true</jumping> <targetplayer>true</targetplayer> <speed>250</speed> <jump>600</jump> </enemy> </enemies> <levels> <level id='1'> <enemy id='1'>1</enemy> </level> <level id='2'> <enemy id='1'>2</enemy> <enemy id='2'>1</enemy> </level> </levels> </data> [/code:1w73j53a]
That's the easiest/cleanest way, but you can also use System.LayoutName to get the current layouts name, to do specific code that way.
The tint effect can be used. Here's a sample with lerp adjusting the Green and Blue channels, to get Red. You can adjust LerpScale to change the timing.
http://www.blackhornettechnologies.com/Construct2Stuff/LerpTint.capx
I like LiteTween for more lerp-like options.
Event 2 doesn't pick a Sprite, so it affects all Sprites. Either move the random action to event 5 and skip the function, or pass in the UID of Sprite to the function and Pick by UID first, to get the correct instance.
Yes, the video shows how to add https to the current localhost site.
v1.0.0.7 available.
Member since 28 May, 2012