Thanks for your help, I wanted to ask you a question of mine. In GameObject class I don’t need setSize then body size still change with display size. But in my Player class it’s not like that, I tried many values but it doesn’t solve the problem. Until I accidentally forgot to pass the parameter to setSize, it worked again, the body size was equal to the display size again. I find it difficult to understand.
My create Image and create Sprite both use the same logic. But after calling setScale and then calling body.setSize, the body.size of the Sprite is always larger than the displaySize, and the performance on the Image object is normal.