luke7eco's Recent Forum Activity

  • Got a visual example of what you are looking for? Alpha clamp should be able to do what you want as far as metaballs/marching squares style effects.

    ex: dropbox.com/s/uz5vxy35vjacptj/MetaballsExample.c3p

    Not really.

    Alpha Clamp visually changes the radius and makes sharp edges and adds gradient.

    I'm searching for a way to make it more beautiful and flat.

    Here is an example: Gooey

  • Hi

    How to make blob/gooey effect between instances of the same object type? Like 2D drops.

    I know that there is an Alpha Clamp effect, but it does not do what I want.

    Thanks

    Tagged:

  • Is there a way to create a custom (own) Effect (which will work as SVG filters) and add it to the layer with SVG Pictures?

    Probably without knowing programming it is too difficult.

  • C3 uses WebGl so regular Html5 Canvas objects, and various effects won't work.

    The Svg object takes the regular elements and converts it to work in the accelerated context.

    You can use the Html Element for those however.

    Thanks

    Do not actually understand how to make it work with HTML Element.

    I'm creating HTML Element with an "svg" tag and such content inside:

    <circle cx="50" cy="50" r="40" fill="red" />

    But in preview, it shows nothing.

    Also, to make that filter work right it is required to create 2 HTML Elements and place all instances of one inside of code of another.

  • any ideas? How to group all SVG instances and add them same style?

    I guess to create an SVG filter I should use something like this:

    	var defs = svg.append("defs");
    	var filter = defs.append("filter").attr("id","SVGFilter");
    	filter.append("feGaussianBlur")
    		.attr("in","SourceGraphic")
    		.attr("stdDeviation","5")
    		.attr("color-interpolation-filters","sRGB") 
    		.attr("result","blur");
    	filter.append("feColorMatrix")
    		.attr("in","blur")
    		.attr("mode","matrix")
    		.attr("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 15 -4")
    		.attr("result","effect");
    

    But I don't know how to use it over SVG instances and where to put it.

  • It should work how you describe, check in debug view if the instances have increased. Maybe they exist but you can't see them for some reason. If there are some SVG created then you can pick them from the inspector and see where they are. If they definitely haven't appeared then please share the project :)

    You're right. It works. Probably did something wrong before.

    Thanks.

  • On start of layout, it creates only instances for Sprite from the container but does not create instances for SVG object that is also there. Can you rephrase?

    "On start of layout" has sub-event "Repeat 100 times", which has an action "Spawn another object".

    In the Manual for containers are such sentences:

    - If one object in a container is created, every other object in its container is also automatically created.

    - If a condition picks one object in a container, every other associated object in its container is also picked.

    When I use the action "Spawn another object" and choose the Sprite object which is in the container it creates only 100 instances for the Sprite (I see it in debug layout).

    As far as I understand from the manual, the system must also create 100 instances for SVG object, because it is in the same container with a Sprite, but it does not happen.

  • I have 2 objects in the container:

    - Sprite (with Physics behavior)

    - SVG (with Pin behavior). In the events sheet, it is pinned to the invisible Sprite (On start of layout), additionally added as a child to that Sprite.

    When I create condition:

    System Repeat XX times and in the actions choose Sprite2, which is not in the container (action Spawn another object choose a Sprite which is in the container)

    On start of layout, it creates only instances for Sprite from the container but does not create instances for SVG object that is also there.

    Do I do something wrong?

    Tagged:

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Hi

    I have an SVG file with a filled circle (<circle></circle>) inside.

    I'm using the SVG plugin and:

    - add to wrap container SVG object and invisible Sprite

    - Pin such SVG object to that Sprite

    - also add SVG object as a child to that Sprite

    Does somebody know how to pick all SVG instances and add an SVG filter to them?

    Adding filters inside an SVG file with a circle does not give that effect. They probably must be the inside of the same class. Here is required solution to add filters to the full layer with such instances.

    Filters I want to add feGaussianBlur, and feColorMatrix.

    Thanks

    Tagged:

  • I guess in conditions I should choose "Is boolean instance variable set" (InBox) and Invert it (so it will be "false"). This will allow me to pick instances with a specific instance variable.

    In action, I should "Add script" with something like this (because I still need to have enabled collisions with that object (Family) for instances with instance variable InBox=true):

    for (const inst of runtime.objects.Ball.pickedInstances())
    {
    	// here must be a code to disable collision with a specific Physics object (Family in my case)
    }
    

    Ashley I will be grateful for a code snippet that will allow me to disable collision with object Family for picked instances

  • Anyway, thank you.

    I think this will work similarly to "Is boolean instance variable set"

    But my problem is more on the Action level, where I can't find options that will allow me to disable collisions for the instance variables. There is the only option to choose an object.

  • Did you try using a for each ball and then if on the InBox variable?

    Just an idea. You can print out line by line in the for each loop to

    get a better handle of what is going on.

    I'm a beginner in this stuff and have no experience in programming.

    Do you mean I need to use scripting: instVars and getAllInstances(), addEventListener(type, func, capture)?

    Can I get an example of your idea? Thank you.

luke7eco's avatar

luke7eco

Member since 28 Nov, 2020

None one is following luke7eco yet!

Trophy Case

  • 3-Year Club
  • Regular Visitor Visited Construct.net 7 days in a row
  • Steady Visitor Visited Construct.net 30 days in a row
  • RTFM Read the fabulous manual
  • Email Verified

Progress

7/44
How to earn trophies