Quick Links: Download Gideros Studio | Gideros Documentation | Gideros Development Center | Gideros community chat
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??

Comments

Sign In or Register to comment.