better way to do this?
guilleface
Member Posts: 1,014
i need to change a image if attribute is equal to any whole number,1,2,3,4,5,6,7,8,9,10 , or change to another image if attribute is 1.5,2.5,3.5,4.5,5.5,6.5, is there a easy way without having all those number as if any?thanks
Comments
dummyZeroAttribute (index) = 0
if dummyZeroAttribute = number - ceil(number)
is whole
Otherwise
is fraction
Send and Receive Data using your own Server Tutorial! | Vote for A Long Way Home on Steam Greenlight! | Ten Years Left
change attribute image to "image"..(ceil(number) - number)
whole number image name = image0
fraction image name = image.5
If X = floor(X) then do action.
Otherwise: do other action.