I have the following object types:
- oWall
- oEnemy
And I'm trying to call the new move_and_collide function in such a way that it would collide against both of them. Something along the lines of:
objectsToCollide = array_push(array_create(0), oWall, oEnemy);move_and_collide(xSpeed, ySpeed, objectsToCollide);
I know that a viable solution is the make a new parent object that oWall and oEnemy could inherit from, but I'm hoping to avoid that since it would add unnecessary entities in my code.