12-17-2020, 05:40 PM
Ok I have no clue what you're trying to accomplish with that.
Please provide some context to what this code is intended to do.
If "item" is a variable for what item Mario is currently using (and thus would be defined on Mario), then you're not referencing Mario's item variable directly: For example: obj_mario.item would be how you'd reference that. Currently Game Maker thinks you're referencing obj_solidbubble's own item variable and it can't call on a variable before you have defined it.
Please provide some context to what this code is intended to do.
If "item" is a variable for what item Mario is currently using (and thus would be defined on Mario), then you're not referencing Mario's item variable directly: For example: obj_mario.item would be how you'd reference that. Currently Game Maker thinks you're referencing obj_solidbubble's own item variable and it can't call on a variable before you have defined it.