When i put this command in it doesnt work. Start of Frame: Set counter to Global Value A/Global Value B*100??
It does nothing, the counter is still at 0 when i get to the screen.
I'm making a shooting game and at the end of the level it sets the number of kills to Global Value A and the number of shots fired to Global Value B. I am trying to make an accuracy percentage. I have two other counters that display the number of kills and the number of shots fired and they work fine.
Is there any reason why its not letting me divide global values?
Check that the counter has a maximum value of over 0, to start with. Then make sure neither global value is 0 to begin with. Make two more counters and set each of them to global A and B respectively, to make sure they are being assigned properly in the previous frame.
Try (Global Value A * 100) / Global Value B
If you're using TGF or something then you can't have decimals. The above method doesn't use decimals to work out the percentage.