I find it weird when Sprite
uses bottom left as its (0,0) point while MenuItemImage
uses center of the screen as (0,0) point. It makes me confused sometime so I wonder is there anyway to set the (0,0) point of MenuItemImage
to the bottom left likes Sprite
?
Sorry for the bad grammar. Your help is very much appreciated.
That’s because menus are automatically centered to the middle of the screen on creation, see line #144 CCMenu.cpp
Just set your menu position to (0, 0) after creating it and your item should appear in the lower left corner.
1 Like