R
Rayos
Guest
Hello everyone,
I am a beginner user of this awesome engine GameMaker: Studio and I am trying from time to time to create something to play with. I am now making a simple Tetris clone but I am stuck at very stupid error. Don't know if this is a GameMaker error itself or I am doing something wrong but...
Every time when alarm[0] starts to work I am cheking a collision if my tetromino is colliding from the bottom with wall (obj_wall) or with tetromino that is already placed (obj_endBlock) using place_meeting. Everything seems to work fine until I rotate my tetromino using image_angle+=90... Then it appears that collision mask (checked as precise collision on whole sprite) is misplaced (?) one or more pixels to the right, because it is happening only when I am trying to put for example reverse L block on top of another tetromino like shown in the screenshot (painted red in this case, normally gray as it stoped moving).
Can somebody help me with this case? I know that I can create a 4 different sprites for each tetromino but in my opinion is waste of time and resources. Thank you in advance for any help!
Rayos
I am a beginner user of this awesome engine GameMaker: Studio and I am trying from time to time to create something to play with. I am now making a simple Tetris clone but I am stuck at very stupid error. Don't know if this is a GameMaker error itself or I am doing something wrong but...
Every time when alarm[0] starts to work I am cheking a collision if my tetromino is colliding from the bottom with wall (obj_wall) or with tetromino that is already placed (obj_endBlock) using place_meeting. Everything seems to work fine until I rotate my tetromino using image_angle+=90... Then it appears that collision mask (checked as precise collision on whole sprite) is misplaced (?) one or more pixels to the right, because it is happening only when I am trying to put for example reverse L block on top of another tetromino like shown in the screenshot (painted red in this case, normally gray as it stoped moving).
Can somebody help me with this case? I know that I can create a 4 different sprites for each tetromino but in my opinion is waste of time and resources. Thank you in advance for any help!
Rayos
Attachments
-
4.1 KB Views: 21