return the number after the decimal point ?!
POM
Member Posts: 2,599
hey guys im having a problem ..
i want to display the time of the play in the results page, and i want to use my own font
so i have digit actors and each is refer to a numeral of the time, HH/MM/SS
i try to extract the "seconds" and it dosent work.. lets say the time is 34.67 i need the " 7 "
what i did was:
change "self.digit" to (game.play_time*10)%floor( (game.play_time*10) )
the result should be 346.7%346 and return " 7 " to my tiny knowledge ,
but it doesent work.... any help?!
i want to display the time of the play in the results page, and i want to use my own font
so i have digit actors and each is refer to a numeral of the time, HH/MM/SS
i try to extract the "seconds" and it dosent work.. lets say the time is 34.67 i need the " 7 "
what i did was:
change "self.digit" to (game.play_time*10)%floor( (game.play_time*10) )
the result should be 346.7%346 and return " 7 " to my tiny knowledge ,
but it doesent work.... any help?!
Comments
seriously
AND i learned a lot from it , thanke you firemaplegames!
by the way in the demo there is the time display at the bottom of the scene, and the minutes
--:0-:--
is adding +1 to it for me every time , check it out , and thanks again!