Luke Pierson
Member
Hello! So, I don't use the built in physics engine in GameMaker because, firstly, I don't need it for much. Secondly, I want to have as much control over my code as possible.
So, when the player breaks something or when the player dies, they emit a couple objects that move outwards, rotate, and fall to the ground. I have it to stop moving entirely when they hit a solid object, such as the floor.
If the objects are too close to walls, however, they will stop, since walls are also solid. This gives a weird effect where the objects will just float in the air.
Also, if the objects happen to spawn within a wall, what sort of code could make them move to get out of the walls?
One last question: I have an object that falls that has a peculiar collision mask, and when it stops, it will stand straight upright. Imagine if you dropped a pencil and it just stood upright instead of rolling onto its side. How would I do something like this?
Thanks in advance!
So, when the player breaks something or when the player dies, they emit a couple objects that move outwards, rotate, and fall to the ground. I have it to stop moving entirely when they hit a solid object, such as the floor.
If the objects are too close to walls, however, they will stop, since walls are also solid. This gives a weird effect where the objects will just float in the air.
Also, if the objects happen to spawn within a wall, what sort of code could make them move to get out of the walls?
One last question: I have an object that falls that has a peculiar collision mask, and when it stops, it will stand straight upright. Imagine if you dropped a pencil and it just stood upright instead of rolling onto its side. How would I do something like this?
Thanks in advance!