E
Edgar Torres
Guest
I have this sort of "piano tiles" mechanic where objects are randomly generated in 4 possible positions and drop as you tap and detroy the lowest object. However, when a series of objects are generated in the same line, one after the other, whe destroying the bottom-most object, it also destroys all the other objects in the series.
Can you help me detect why this is happening?
[/url]hosting imagenes[/IMG]
This is the script giving me trouble:
This is what goes on when the object gets clicked on:
And this is the other script mentioned:
Thank you!
Can you help me detect why this is happening?
This is the script giving me trouble:
Code:
if (!place_meeting(100,1200,obj_nail)&&
!place_meeting(300,1200,obj_nail)&&
!place_meeting(500,1200,obj_nail)&&
!place_meeting(700,1200,obj_nail))
{
with(obj_nail)
{
y += 200;
}
script_execute(scr_create_nail);
}
Code:
if (y = 1200)
{
score ++;
instance_destroy();
script_execute (scr_check_nail);
}
Code:
randomize();
lanex_0 = 100;
lanex_1 = 300;
lanex_2 = 500;
lanex_3 = 700;
lane_pos = choose(lanex_0,lanex_1,lanex_2,lanex_3)
obj_new_nail = instance_create(lane_pos, global.nail_y, obj_nail);