You provide the points of the two objects you are checking.
if( distance(Enemy1.X, Enemy1.Y, Enemy2.X, Enemy2.Y) < 50) do something.
Use the distance() expression.
construct.net/en/make-games/manuals/construct-3/system-reference/system-expressions
It's in the original post.
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
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?
Develop games in your browser. Powerful, performant & highly capable.
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.
Member since 28 May, 2012