E
entegrade
Guest
hey all, ive made an rng weapon system in my game. the gun has its own base reload stat decided in the create event. ive also put a new reload stat in the create event that gets its new reload speed after upgrades/mods (this is here since i cant put it in the step event otherwise). the new reload is also in the begin step event.
when the gun is drawn in the draw event and is in its reload state (also in the draw event) it plays its reload animation. the image_speed is determined by the formula base reload / New reload. (divides both values so if you have a faster new reload, the animation will play faster).
however, even if ive modified the new reload’s value in the step event, it always refers to its create event for the value. i want to update the new reload in real time so the image_speed will always be updated based on any new +reload speed stats/upgrades/downgrades.
ive tried global variables that can be updated but it still always refers to its create event value. any idea how i could fix this? any help would be deeply appreciated
when the gun is drawn in the draw event and is in its reload state (also in the draw event) it plays its reload animation. the image_speed is determined by the formula base reload / New reload. (divides both values so if you have a faster new reload, the animation will play faster).
however, even if ive modified the new reload’s value in the step event, it always refers to its create event for the value. i want to update the new reload in real time so the image_speed will always be updated based on any new +reload speed stats/upgrades/downgrades.
ive tried global variables that can be updated but it still always refers to its create event value. any idea how i could fix this? any help would be deeply appreciated
Last edited by a moderator: