Need help with player numbers input
RocketBrain
Member, PRO Posts: 269
so i've built a num pad. and i have it set so it displays a value as the player inputs....but its backwards. Basically what i've done is each time you hit a number it assigns a value to an individual attribute that is multiplied by its place number.
answertotal = answer1 + (answer2*10) + (answer3*100).....
i want it to work like you would have a calculator but i cant get it to work. the way i have it works but it inputs each new number on the left side rather than the right. So 3,2,1 becomes 123.
is there a better way of doing this? ive heard the "strings" tossed around with this subject before
answertotal = answer1 + (answer2*10) + (answer3*100).....
i want it to work like you would have a calculator but i cant get it to work. the way i have it works but it inputs each new number on the left side rather than the right. So 3,2,1 becomes 123.
is there a better way of doing this? ive heard the "strings" tossed around with this subject before
Comments