• 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!

SOLVED OTHER FUNCTION FREEZE

G

Gudiwa

Guest
For some reason whenever i use the "other" keyword the game freezes. I cannot access collision-based instance id or variables because of this. Its hard to find a ways around this. Please help.
 

FrostyCat

Redemption Seeker
There are only 2 places in GML where you can use other:
  1. Inside an actual Collision event (i.e. the one from the event selector, NOT collision checks in the Step event)
  2. Inside a with block (where it refers back to the original calling instance)
Is the freezing code using other in any way other than those described above?
 

curato

Member
i would create blank project. make two objects move them at each other for the collision and save he value of other in a variable. If that works then it not other itself it is some code in your project most likely an infinitely loop
 
G

Gudiwa

Guest
oh thanks. didn't know that "other" can only be used in a collision event
 
Top