mirror of
https://github.com/Ttanasart-pt/Pixel-Composer.git
synced 2024-11-16 07:23:52 +01:00
19 lines
581 B
Plaintext
19 lines
581 B
Plaintext
function Node_Smoke(_x, _y, _group = noone) : Node(_x, _y, _group) constructor {
|
|
color = COLORS.node_blend_smoke;
|
|
icon = THEME.smoke_sim;
|
|
update_on_frame = true;
|
|
|
|
static updateForward = function(frame = CURRENT_FRAME, _update = true) {
|
|
if(_update) update(frame);
|
|
//print($"Update {frame}: {name}");
|
|
|
|
var outJunc = outputs[0];
|
|
for( var i = 0; i < array_length(outJunc.value_to); i++ ) {
|
|
var _to = outJunc.value_to[i];
|
|
if(_to.value_from != outJunc) continue;
|
|
if(!struct_has(_to.node, "updateForward")) continue;
|
|
|
|
_to.node.updateForward(frame);
|
|
}
|
|
}
|
|
} |