Quantcast
Channel: Tech Support
Viewing all articles
Browse latest Browse all 1758

Getting infinite loop on HTML5 because of instance_create_layer

$
0
0
so what I do is creating other room in current with this script:

GML:
function sc_room_inst(r){

var inst = room_get_info(r, 0, 1, 0, 0, 0).instances

var instances = []

for (var i = 0; i < array_length(inst); i += 1)
{
    //show_message(inst)
    var o = instance_create_layer(inst[i].x, inst[i].y, "Instances", asset_get_index(inst[i].object_index))
    //var o = instance_create_depth(inst[i].x, inst[i].y, 300, asset_get_index(inst[i].object_index))
    o.image_blend = inst[i].colour...
Getting infinite loop on HTML5 because of instance_create_layer

Viewing all articles
Browse latest Browse all 1758

Trending Articles