I don't believe that you can do that on Javascript. If you use Java, you can "walk the file tree."
You can either have the weapon sprite be filled with different weapons on each frame and simply increment/decrement the frame number when the mouse wheel is moved, or you can line the sprites up in a row on a layer below with just the box open and move the Y-position of the line of sprites up and down.
You will have to do this on a server, as anyone can just delete any kind of protections that you put in the JavaScript on the browser side.
Develop games in your browser. Powerful, performant & highly capable.
Like:
Mouse | Cursor is over "blahblahblah" | Set font color to rgb(255,255,255)
ELSE | set font color to rgb(0,0,0)
Also, make sure that the text box boundary is not huge. If the mouse is anywhere inside the text box boundary (no matter how small the text is) it will be considered "over" the text box.
See this: https://drive.google.com/file/d/0B-xiqK ... sp=sharing
Try adding the "Behaviors" > "Solid" attribute to the ground sprite.
You need an artistic box set with an array of coordinates to define where each box is, then when you drag and drop a box-sized sprite anywhere within the box's coordinates you can pin that object to the box.
You would be better off using a program like Photoshop or Paint.NET to turn it into a greyscale.
Paint.NET you can just open the image and choose "Adjustments" > "Black and White", and it will convert the image to greyscale.
Very nice work.
fruit.setFrame(random(fruit.AnimationFrameCount))
You can keep an array or list or dictionary linking the fruit animation frame to the fruit name like:
{0:"apple",1:"banana",2:"mango",...}
It is in the HTTP request headers.
Lots of if-then-else statements in clever sequences and loops.
Maybe try a pathfinding plugin?
plugin-fast-path-finding-preview_t68714
Or make your own:
https://www.scirra.com/manual/154/pathfinding
Cant you just make a ketchup sprite with that exact pattern and layer it over the.. um stuff?
Or does it need to be dynamically generated?
You can try running Construct in an iFrame and have the ad slots in the root page.
Did you export it as an HTML file system, or did you use the specific Construct exporters for each of these platforms?