Artie_Kyle
Member
Hey GMC,
The issue is as the title suggests, which is bizarre considering how easy this one should be.
Basically, I'm holding a gun, and I have a box that has 20 images that cycle through, how I want it to work is that when I collide with the box, depending on then image, a specific weapon gets assigned, yet for some reason, the boxes get destroyed and nothing happens.
This slice of code explains how I'm approaching this one. For the record, this is part of a script where image_index = _image_index and obj_gun = _weapon_change.
What am I missing here?
If I'm missing information that could help you elaborate what I'm messing up, please inform me and I'll add it straight away.
As always, thanks for the help, folks!
The issue is as the title suggests, which is bizarre considering how easy this one should be.
Basically, I'm holding a gun, and I have a box that has 20 images that cycle through, how I want it to work is that when I collide with the box, depending on then image, a specific weapon gets assigned, yet for some reason, the boxes get destroyed and nothing happens.
This slice of code explains how I'm approaching this one. For the record, this is part of a script where image_index = _image_index and obj_gun = _weapon_change.
Code:
if image_index == 11 {
with obj_weapon_parent_boy {
instance_change(obj_gun, true);
}
}
If I'm missing information that could help you elaborate what I'm messing up, please inform me and I'll add it straight away.
As always, thanks for the help, folks!