[Solved] Question about pixel2d

Hello guys!

I’m trying to make a menu for my game, but something is wrong with pixel2d. Take a look at the following code:

self.logo = OnscreenImage(image = 'Logo.png') # Image size is 728x100
self.logo.setPos(0, 0, 0)
self.logo.setScale(364, 1, 50)

It loads an image, but it appears in the top left corner and no matter what position I set, it stays in the same place all the time. Is it a bug or I misunderstood something about pixel2d?

maybe this is offtopic but i have made a simple menu - look at discourse.panda3d.org/viewtopic.php?t=8400
maybe that helps…

I know where my problem is. I should have set image’s position in pixels. Like this:

self.logo.setPos(base.win.getXSize()/2, 0, -base.win.getYSize()/2)

Praios, for some reason your examples do not work for me. I’ll post about it in your thread.