Understood. It would be nice to have the ability to pick objects, I agree :).
What about using an invisible sprite/wall on top of a visible one?
I don't know what movieclips is, never dealt with flash.
But if you are taking about on the event sheet? Then sure, right click and choose create group. Name it, and drag all relevant events into that group.
Global Variable AMMO
Subtract 1 from AMMO each time you shoot.
If AMMO = 0, wait X seconds, set AMMO to full again.
Does that make sense?
OK, I put the code in the index.html right after:
<div id="c2canvasdiv">
<div id="fs" class="grid-item">
MS AD CODE HERE....
Don't forget to go through the rest of the steps in the link. Installing the SDK, adding ads.js, setting internet under capabilities.
I've been serving MS Ads on my Windows 8 games for some time.
This give the quick walkthrough.
about.ads.microsoft.com/en/blog
Soon as I get back to my win8 machine I will post where exactly you put your div code, I don't remember off hand.
Here is an example using a function and a boolean instance variable.
Toggle Sprite Visible / Invisible
What's happening is that set of code is constantly running, so when you click and deactivate it, the next line of code says oh it's deactivated, activate it. Next time you click it does the same thing.
I'll try to whip up a example.
You have to create some events to reset everything. Usually done on Start of Layout. Reset global variables, etc.
I hope that makes sense.
So put your character, with the scrollTo behavior, on the screen where you want it to start. If you want to start at the bottom, place it there in design time, when you start the game that is where it will start.
Develop games in your browser. Powerful, performant & highly capable.
<img src="http://content.screencast.com/users/ArcadEd/folders/Jing/media/e73946aa-8e5c-452c-8e29-d7ac1381d21c/2013-06-12_1445.png" border="0" />
Sure, create some global variables like deadX and deadY. When the player dies, set deadX to player.x and deadY to player.y
Or if you need to save more than one location, use an array.
For #1, I wouldn't use the build in editor to create sprites. Create them in an external program like GIMP, Photoship, etc.
2. Yes, using the Node-Webkit export allows you to create standalone apps for Windows and Mac destkop.
Give the green slime an instance number variable called health
When bullet collides with slime, subtract 1 from health
When health is 0, call your end of level events.
For level 1 set health to 1
For level 2 set health to 2
etc.
Do you have Snap To Grid turned on? When you resize objects, it resizes based on the grid snap, so maybe that's it?