• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

GameMaker [HELP] Getting all instances of objects in object layer ?? [Solved (kinda??)]

R

RenNagasaki

Guest
Hello,
I'm working on an top down RPG.
Ive gotten my depth and stuff sorted out but I've run into a problem.

I want my collision to be untied to the tiles, that's why im using physics and objects as collision.
You can see my problem in this screenshot:


The blue marked part is one floor higher than the orange one.
Each floor is its own tile layer.
What i want is to disable/enable the red/white collision borders depending on which floor the character is on.

But I don't seem to find a way to get an instance of the object layer or the instances of the objects in one such layer.

I hope you understand my question and can help me.

With regards,
RenNagasaki
 
B

Bayesian

Guest
You could try giving each floor a parent object and then check for that object's collisions when you need to with an if statment
 
R

RenNagasaki

Guest
Niiiiicee, I didn't even think about that!
Thank you very much sir!

With regards,
Ren
 
Top