My game involve comparison of width of objects,but when i use the mirrored images,its width become negative and always smaller than the other objects,how do i make it always positive?(without using instance variable)
abs(sprite.width) will give you the positive value.
Develop games in your browser. Powerful, performant & highly capable.
thank you! it works!