i have a small function in a collision event in Game Maker, for some reason once triggered, the variable is supposed to increment, by another variable, it just runs off and keeps increment to max. here is the code.
if(global.rep <= 5000){
global.rep += rep_gain;
global.poop_time = poop_time - 5;
}
if this is in a collision event it should only fire once, the variable rep_gain is an irandom(5,10), but it will just keep running to 5000 which is max.