What is puirpose of alpha when doing a group?

I am using Corona SDK Mobile Game Book

Pg 105

transition.to(menuScreenGroup,{time = 0, alpha=0, onComplete = addGameScreen})

I understand that the alpha is used to determine opaqueness but since this is talking about group, it seems like it is totally unusable in this context.

I changed alpha to 1 and even took it out and nothing was different. So, is there any purpose to alpha=0 here?
Sorry if I am being nit-picky but trying to learn reasons for everything and what happens when you change things. Hope this is the right forum to put this in. I didn’t know if this was Lua language or Corona.

Thanks!
[import]uid: 159663 topic_id: 28280 reply_id: 328280[/import]

Hi, putting it here is fine.

1 is the default for alpha (range = 0-1) and not entering a value it will default to 1.

Setting it as 0, either on an object or on a group, will cause it disappear.

Your transition there wouldn’t be noticeable if addGameScreen adds new images to the scene, it would just be like a scene change. What you could do is set time to 2000 and alpha to 0, then you’d see a fade out of all objects in your display group.

Peach :slight_smile: [import]uid: 52491 topic_id: 28280 reply_id: 114291[/import]