Mauro Adrian Rivero
Member
Hi all!
I am having troubles with my copy of tetris game. I have difficulty in making a hard drop, I made a temporary solution with somthing like this:
[OBJECT PIECE]
(STEP EVENT)
if (key_space_press){
hard_drop = true;
alarm[1] = 1;
}
(ALARM[1] EVENT)
/* Here i check collision and other stuff and make piece falling down
and I have something like this*/
if !(hard_drop){
alarm[1] = myControl.mySpeed;
} else {
alarm[1] = 1;
}
All in all.. i made a "hard drop" sending the object piece to alarm[1] and setting it in 1 to make piece falling faster
I am working with grids. I have my board in a grid called boardDynamic in wich I draw and move my piece
and another grid called boardLanded in wich i have all pieces who have landed moreover i check collisions here and I have all my pieces in a 4x4 grid.
I want to calculate the drop of my piece and try to draw a " ghost " piece in the position that is supossed to will go to fall.
I hope you can understand me .. I try several things but nothing work exactly how I want
I am having troubles with my copy of tetris game. I have difficulty in making a hard drop, I made a temporary solution with somthing like this:
[OBJECT PIECE]
(STEP EVENT)
if (key_space_press){
hard_drop = true;
alarm[1] = 1;
}
(ALARM[1] EVENT)
/* Here i check collision and other stuff and make piece falling down
and I have something like this*/
if !(hard_drop){
alarm[1] = myControl.mySpeed;
} else {
alarm[1] = 1;
}
All in all.. i made a "hard drop" sending the object piece to alarm[1] and setting it in 1 to make piece falling faster
I am working with grids. I have my board in a grid called boardDynamic in wich I draw and move my piece
and another grid called boardLanded in wich i have all pieces who have landed moreover i check collisions here and I have all my pieces in a 4x4 grid.
I want to calculate the drop of my piece and try to draw a " ghost " piece in the position that is supossed to will go to fall.
I hope you can understand me .. I try several things but nothing work exactly how I want
Last edited: