You can only lower the volume. Sound is expected to be recorded at its highest volume, so you only ever turn the volume down.
construct.net/en/make-games/manuals/construct-3/plugin-reference/audio
construct.net/en/make-games/manuals/construct-3/system-reference/system-expressions
str()
int()
float()
You can't just mash a bunch of tags together. Either give those sounds the same tag, or deal with each individually.
Thanks R0J0hound and Mikal. I've decided not to sweat it. I was thinking that I was being a bad citizen by not bounding my graphics by the bounding box, but then it occurred to me finally that Particles aren't bound by their bounding box. My Lightning plugin is similarly just a graphics effect, so it's not required to be bound at all.
The trick is to start from the bottom of the array:
+ System: For "" from Array.Width-1 to 0
----+ Array: Value at LoopIndex = 1
-----> Browser: Warn in console: "Removing entry #" & (LoopIndex + 1)
-----> Array: Delete index LoopIndex from X axis
or... do I need to draw into a texture, which handles the cropping, and then apply that texture? Or... can I even use the DrawingCanvas inside my plugin to do the heavy lifting?
construct.net/en/make-games/manuals/construct-3/interface/dialogs/import-audio
Ref: construct.net/en/forum/construct-3/plugin-sdk-10/canvas-image-extraction-146200
I still must be missing something. If I add the following code to the drawing-plugin-demo (v1.8):
Draw(renderer) { ... var c = new self.C3.Color(0.5, 0.5, 0.25, 1.0); c.premultiply(); renderer.SetColor(c); renderer.PushLineWidth(5); renderer.Line(0, 0, 100, 200); renderer.PopLineWidth(); }
... it just draws on the screen/viewport even outside of the objects given boundaries. Is there no mechanism to crop to the objects boundaries?
Update: 1.0.1.3
Supports new minify mechanism.
The bounding box is bad. Edit the sprite and fix the bounding box.
Develop games in your browser. Powerful, performant & highly capable.
Fib, sorry that's incorrect. You can access the object within the same scope it was created, but not outside of it in the same event. The newly created object can be picked in the next top level event.
A trick I use all the time is to create objects in "On start of layout", then have a second "On start of layout" to access the new objects and do anything I need with them.
If you don't specify a name, you use loopindex. If you do, then you reference by name loopindex("HasDropLoop").
To build up your string, you need to convert the number to a string, so str(loopindex("HasDropLoop")) would get that particular segment for you.
They can do that. Not sure what your concern is. If a value is returned, you want to look at the value somehow.
A function that returns a number can only be used in an expression. (This is different from C2). Set the value to a variable, and it will appear as an expression.
You do not have permission to view this post