Was experimenting with the problem of screws over a changing background and I finally ended up with a quite satisfactory solution: semi-transparent screws. I worked carefully (maybe too much considering the final size) on shadows transparency and depth of the screw itself and its imprint with no backgroundand at all, then saved the image of one screw in the usal png with alpha channel format and added a set of 3 to 4 screws to each gauge individually.
I then displayed each screw with a slight img_rotation() and some random rotation angle (but not much because of the shadows).
Code: Select all
if display_screw then
screw1=img_add("screw.png",35,35,40,40)
img_rotate(screw1,math.random(-35,25))
screw2=img_add("screw.png",35,425,40,40)
img_rotate(screw2,math.random(-30,30))
screw3=img_add("screw.png",425,35,40,40)
img_rotate(screw3,math.random(-45,35))
screw4=img_add("screw.png",425,425,40,40)
img_rotate(screw4,math.random(-15,35))
end
Code: Select all
display_screw=true -- set it to false if not needed