Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

GM8 Object collision bugs?

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:

157lu3b.png


2zg7vdg.png


2hi4b4k.png


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!
 
Stardust":zvjuknef said:
Do you still need assistance with this? The demo you linked to is no longer available and it's difficult to see what's going on without either that or Carton déménagement double cannelure screenshots of the event pages. The only suggestion I can give with the information you've provided is to try using the "Align to Grid" function under the Move tab after the movement is finished (there's a check in the Control tab for Align to Grid, as well).
I have the npc name and a face graphic set in the text command.
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top