Dan1
Member
Hey everyone,
So I'm at a bit of a loss with how to code this:
Basically, I'm building a management/building kind of game and one of the building objects HAS to be in collision with a conveyor belt in order to build it but can't be in collision with ANYTHING else (any other machines already on the conveyor belt) - but without playing around with adjusting solids and parent objects (as they do all act quite differently), I'm not sure what the best way is to detect if the item is in collision only with the conveyor belt object and nothing else in order to say it can be built.
The detection is done via a control object that uses the mouse_x and mouse_y positions (rounded to a 32x32 grid)
Ideally I don't want to use the collision mask either as I've had to give each of the machine objects a very small collision mask for a different reason entirely and changing that would mess up a different bit.
This image might better explain what I'm trying to achieve here
Any ideas how to accomplish this would be much appreciated!
So I'm at a bit of a loss with how to code this:
Basically, I'm building a management/building kind of game and one of the building objects HAS to be in collision with a conveyor belt in order to build it but can't be in collision with ANYTHING else (any other machines already on the conveyor belt) - but without playing around with adjusting solids and parent objects (as they do all act quite differently), I'm not sure what the best way is to detect if the item is in collision only with the conveyor belt object and nothing else in order to say it can be built.
The detection is done via a control object that uses the mouse_x and mouse_y positions (rounded to a 32x32 grid)
Ideally I don't want to use the collision mask either as I've had to give each of the machine objects a very small collision mask for a different reason entirely and changing that would mess up a different bit.
This image might better explain what I'm trying to achieve here
Any ideas how to accomplish this would be much appreciated!