Quick Links: Download Gideros Studio | Gideros Documentation | Gideros Development Center | Gideros community chat | DONATE
incorrectly puts an anchor on the group — Gideros Forum

incorrectly puts an anchor on the group

minX,minY,maxX,maxY=application:getLogicalBounds()
 
centrX = application:getContentWidth()/2
centrY = application:getContentHeight()/2
 
 
group1 =Sprite.new()
stage:addChild(group1)
 
 logo1=Bitmap.new(Texture.new("img.png"))
 logo1:setPosition(100,0)
 
 logo2=Bitmap.new(Texture.new("img.png"))
 logo2:setPosition(300,0)
 
group1:addChild(logo1)	
group1:addChild(logo2)	
 
group1:setAnchorPoint(0.5,0)
group1:setPosition(centrX,minY)
I want the group1 to be centered
gideros puts the center of the logo1

Why??
my games:
https://play.google.com/store/apps/developer?id=razorback456
мій блог по гідерос https://simartinfo.blogspot.com
Слава Україні!

Comments

Sign In or Register to comment.