S
Spencer S
Guest
I have 2 objects: obj_player, and obj_pickup. obj_pickup is a spriteless object that I assign a sprite to in the objects creation code in the room. In this tutorial
, it has just that: a spriteless object that is assigned a sprite later on in the creation code. That way, one object can be used for a multitude of different items.
The one key difference is that in that tutorial, physics is NOT enabled, and in my game, physics IS ENABLED. Unchecking physics and using the exact same code otherwise allows the obj_pickup to collide just fine with obj_player. But the moment I check physics on, the collisions don't work, even if I use mask_index, which I thought would set the collision mask correctly. What is going wrong?
The one key difference is that in that tutorial, physics is NOT enabled, and in my game, physics IS ENABLED. Unchecking physics and using the exact same code otherwise allows the obj_pickup to collide just fine with obj_player. But the moment I check physics on, the collisions don't work, even if I use mask_index, which I thought would set the collision mask correctly. What is going wrong?