Ayy I made a neat bundle

So, this one creates a shockwave where the object is at. Has inputs and outputs.

Code is here:

{“data”:{“behavior”:{“v”:“2”,“nodes”:[{“inputCount”:2,“outputCount”:2,“name”:“Shockwave”,“behaviorType”:“logic.NodeGroup”,“x”:-360,“y”:192,“group”:"",“id”:“5281d199638e2a47”,“notes”:null,“n_o”:null,“isMenuItem”:false},{“inputCount”:4,“outputCount”:2,“name”:“Shader”,“behaviorType”:“logic.properties.Shader”,“x”:-180,“y”:128,“group”:“5281d199638e2a47”,“id”:“52806364bff50543”,“notes”:null,“n_o”:null,“mode”:1,“type”:“shockwave”,“settings”:[160,160,10,0.8,1]},{“inputCount”:1,“outputCount”:1,“name”:“Extractor”,“behaviorType”:“logic.properties.Extractor”,“x”:-630,“y”:160,“group”:“5281d199638e2a47”,“id”:“5281514df03ebd4c”,“notes”:null,“n_o”:null,“targetId”:0,“prop”:“x”},{“inputCount”:1,“outputCount”:1,“name”:“Extractor”,“behaviorType”:“logic.properties.Extractor”,“x”:-630,“y”:256,“group”:“5281d199638e2a47”,“id”:“5281681ce219514a”,“notes”:null,“n_o”:null,“targetId”:0,“prop”:“y”},{“inputCount”:0,“outputCount”:1,“name”:“Always”,“behaviorType”:“logic.triggers.Always”,“x”:-810,“y”:224,“group”:“5281d199638e2a47”,“id”:“528189e8bdead249”,“notes”:null,“n_o”:null},{“inputCount”:0,“outputCount”:1,“name”:“Bundle Input”,“behaviorType”:“logic.NodeGroupInput”,“x”:-630,“y”:64,“group”:“5281d199638e2a47”,“id”:“528211bb3c466844”,“notes”:null,“n_o”:null,“portId”:“5281d199638e2a47i0”,“tag”:“Off”,“dataType”:2},{“inputCount”:0,“outputCount”:1,“name”:“Bundle Input”,“behaviorType”:“logic.NodeGroupInput”,“x”:-630,“y”:0,“group”:“5281d199638e2a47”,“id”:“528213eee8535640”,“notes”:null,“n_o”:null,“portId”:“5281d199638e2a47i1”,“tag”:“On”,“dataType”:2},{“inputCount”:1,“outputCount”:0,“name”:“Bundle Output”,“behaviorType”:“logic.NodeGroupOutput”,“x”:0,“y”:192,“group”:“5281d199638e2a47”,“id”:“52826c907c5d7148”,“notes”:null,“n_o”:null,“portId”:“5281d199638e2a47o0”,“tag”:“Off”,“dataType”:2},{“inputCount”:1,“outputCount”:0,“name”:“Bundle Output”,“behaviorType”:“logic.NodeGroupOutput”,“x”:0,“y”:128,“group”:“5281d199638e2a47”,“id”:“52826ee8c9e42a4c”,“notes”:null,“n_o”:null,“portId”:“5281d199638e2a47o1”,“tag”:“On”,“dataType”:2},{“inputCount”:3,“outputCount”:1,“name”:“Switch”,“behaviorType”:“logic.logic.Switch”,“x”:-450,“y”:160,“group”:“5281d199638e2a47”,“id”:“52837e73844a6e4f”,“notes”:null,“n_o”:null,"_startVal":1,“dataType”:2},{“inputCount”:3,“outputCount”:1,“name”:“Switch”,“behaviorType”:“logic.logic.Switch”,“x”:-450,“y”:256,“group”:“5281d199638e2a47”,“id”:“52837fbd6ba94944”,“notes”:null,“n_o”:null,"_startVal":1,“dataType”:2}],“links”:[{“input_id”:“52826ee8c9e42a4ci0”,“output_id”:“52806364bff50543o0”},{“input_id”:“52826c907c5d7148i0”,“output_id”:“52806364bff50543o1”},{“input_id”:“52837e73844a6e4fi2”,“output_id”:“5281514df03ebd4co0”},{“input_id”:“52837fbd6ba94944i2”,“output_id”:“5281681ce219514ao0”},{“input_id”:“5281514df03ebd4ci0”,“output_id”:“528189e8bdead249o0”},{“input_id”:“5281681ce219514ai0”,“output_id”:“528189e8bdead249o0”},{“input_id”:“52806364bff50543i3”,“output_id”:“528211bb3c466844o0”},{“input_id”:“52837e73844a6e4fi0”,“output_id”:“528213eee8535640o0”},{“input_id”:“52806364bff50543i2”,“output_id”:“528213eee8535640o0”},{“input_id”:“52837fbd6ba94944i0”,“output_id”:“528213eee8535640o0”},{“input_id”:“52806364bff50543i0”,“output_id”:“52837e73844a6e4fo0”},{“input_id”:“52806364bff50543i1”,“output_id”:“52837fbd6ba94944o0”}]}}}

2 Likes

The shockwave uses the game layer coordinates

1 Like

Ik. But it doesn’t use the coordinates of the object. Just the coordinates of the game layer.

If the object is in the game layer, you just have to extract its X and Y.
If its in the UI, you also add the camera position.

2 Likes

Ik, wuz just messing around with stuff. :upside_down_face:

1 Like

yeah, also nothing happens when I import that code

1 Like

Huh. Weird. Here, I made a screen shot:

1 Like