Fredrik
Member
I have a question. It might be a "noobish" question, but I have a generation system that generates something in a grid-form, and each instance in each grid goes under the parent "room_parent" and i want each instance under room_parent to check in certain directions if there is any further rooms generated. With this, I thought of using
if position_meeting(x, y,room_parent) {what to happend...}
to check for any further instances in a certain direction, but with this function, do the instances actually have to collide? or can I check if a certain instance is, let's say position_meeting(x - 16, y, obj) without the instances actually colliding? and if not, is there any other function for this?
Edit:
As of now I've been using place_empty to check if a space in a given direction is empty, but that causes bugs and some generations... so I wanna do the same. Check in one given direction, but to check if there is a instance under room_parent there.
if position_meeting(x, y,room_parent) {what to happend...}
to check for any further instances in a certain direction, but with this function, do the instances actually have to collide? or can I check if a certain instance is, let's say position_meeting(x - 16, y, obj) without the instances actually colliding? and if not, is there any other function for this?
Edit:
As of now I've been using place_empty to check if a space in a given direction is empty, but that causes bugs and some generations... so I wanna do the same. Check in one given direction, but to check if there is a instance under room_parent there.