I'm trying to make an enemy collide with collision tiles in GML. I don't think there should be anything wrong with it; it compiles, but every time the enemy either immediately disappears, or just doesn't move at all! (It's somehow different for every one everytime I run it). Create: _enemyspeed = 3 * random_range(1, 1.25) _enemyhp = 5 Step: if _enemyfrozen <= 0 { direction = point_direction(x, y, oplayer.x, oplayer.y) _enemyinvincibility -= 1 if _enemyinvincibility < 0 { _enemyinvincibility =...| Recent Questions - Game Development Stack Exchange
I have a system where 2D physics objects are spawned, and I need to know when they spawn outside of a region defined by a box collider set to "is Trigger". Using OnTriggerEnter and OnTriggerExit to know if an object exits / re-enters the bounds (with some other conditions determining whether to kill the object when it exits the bounds), that stuff works fine. However, I can't detect when an object spawns outside of the collider (which I want to allow, but just know when it happens). I tried t...| Recent Questions - Game Development Stack Exchange
I was recently reading about the technology of Ocarina of Time/Majoras Mask and discovered that world collision is done using a single triangle mesh (vertices, normals, etc) for an entire area. The...| Game Development Stack Exchange