Hello! I am working in GM8 and have a problem with the game. I tried to make everything in 64 x 64 sprites so that everything is as big, making up a "perfect" grid. The problem is that objects gets stuck in the corner. That's why I did the object masks smaller. But then they loose their grid cordinates (meaning that objects move too far and get stuck still).
Also, sometimes, the objects doesn't move all the way to the wall even if I have set "precise collision checking". These pictures may help, but maybe they don't show the spaces that the objects leave between each other so well. I hope you understand what I'm talking about. There is something I've done wrong since they stop too early or move till they're stuck in the wall objects (Brown boxes area). I am sure that you are aware of the "Bug" in Game Maker where objects get suck in each other as long as you have the "stop movement" action and the solid option on.
Please help!
PICTURES:
Well I can explain how I made it work so far:
I have 9 shape objects:
1 TRIANGLE, CIRCLE and SQUARE Object (These are the DEFAULT and when other shape object types stops, they turn into this one!)
1 TRIANGLE, CIRCLE and SQUARE IN MOVEMENT Object
1 TRIANGLE, CIRCLE, and SQUARE "OFF" Object.
When you click on any shape (THE STANDARD/DEFAULT OBJECT) Arrows appears that shows you ways you can move. You can only move over grey areas (not Brown). When you click any Arrow and the shape starts moving, the one you move Changes into "OBJECT"MOVING". Other SHAPEs are turned into "OBJECT OFF". Then an object is created that destroys all Arrow buttons (step event) whenever a shape is moving (so that only 1 shape can move at a time). When a move is finished and a shape stops (at walls, other SHAPEs) the Arrow destroying object is deleted and ALL Shapes are turned into the Default again, making it possible to move the same or Another object shape again.
I hope I did a good explanation here!
DEMO DOWNLOAD:
https://www.sendspace.com/file/wfeh7g
Thanks in advice!
Also, sometimes, the objects doesn't move all the way to the wall even if I have set "precise collision checking". These pictures may help, but maybe they don't show the spaces that the objects leave between each other so well. I hope you understand what I'm talking about. There is something I've done wrong since they stop too early or move till they're stuck in the wall objects (Brown boxes area). I am sure that you are aware of the "Bug" in Game Maker where objects get suck in each other as long as you have the "stop movement" action and the solid option on.
Please help!
PICTURES:
Well I can explain how I made it work so far:
I have 9 shape objects:
1 TRIANGLE, CIRCLE and SQUARE Object (These are the DEFAULT and when other shape object types stops, they turn into this one!)
1 TRIANGLE, CIRCLE and SQUARE IN MOVEMENT Object
1 TRIANGLE, CIRCLE, and SQUARE "OFF" Object.
When you click on any shape (THE STANDARD/DEFAULT OBJECT) Arrows appears that shows you ways you can move. You can only move over grey areas (not Brown). When you click any Arrow and the shape starts moving, the one you move Changes into "OBJECT"MOVING". Other SHAPEs are turned into "OBJECT OFF". Then an object is created that destroys all Arrow buttons (step event) whenever a shape is moving (so that only 1 shape can move at a time). When a move is finished and a shape stops (at walls, other SHAPEs) the Arrow destroying object is deleted and ALL Shapes are turned into the Default again, making it possible to move the same or Another object shape again.
I hope I did a good explanation here!
DEMO DOWNLOAD:
https://www.sendspace.com/file/wfeh7g
Thanks in advice!