is it possible to scale an overlay scene?

Hi guys,

I just started using overlay scenes in my upcoming game and I was wondering if I could re-size the the overlay. For instance I have an overlay scene that shows a store with stuff to buy. The issue is that the overlay screen seems to take the all screen so it does not really look like an overlay but some other screen. I am trying to show the player that he/she still in the current screen and the store is just an overlay.

I did not see any options to re-size the overlay (to make it smaller than the current scene visually) so I am not even sure it is possible since if the overlay is smaller that the full screen then I will assume people could press on a button on the current scene that it is not cover by the overlay.

No sure if I am making any sense here but I will appreciate any confirmation of wether or not i can change the dimension of an overlay screen.

THANKS!

Mo

i just create the scene smaller then screen size

Scenes are nothing more than display groups.  You should be able to do :scale(xScale,yScale) on the scene’s View though I don’t know what would happen to various transitions when the overlay is created or removed and the group isn’t the size expected.  You’re heading into unknown, undefined territory.

Why can’t you just make your background smaller and make sure everything fits in that smaller space.

Thanks guys!

Are you saying if I have say a background image smaller than the full screen and then simply put my buttons and other display inside that background then anything outside the background image (overlay) will not response to clicks? (i.e.: buttons showing from the current screen (below the overlay)?

That will be fantastic!

Mo

Set isModel=true
For overlay

Thanks jstrahan. That’s what I have now. I will assume then that nothing below the overlay will receive touch events even if the overlay is smaller than the full screen. That will make sense. I will make my overlay smaller and double check on this.

Cheers.

Mo

My overlay covers 80% of my screen and I have no buttons around the outer edge so can’t say if it blocks only under the overlay or the entire scene under the overlay

If it doesn’t block the entire scene below you could have a nearly invisible rect behind the overlay that covers the entire scene which would help focus user on the overlay and block touches

i just create the scene smaller then screen size

Scenes are nothing more than display groups.  You should be able to do :scale(xScale,yScale) on the scene’s View though I don’t know what would happen to various transitions when the overlay is created or removed and the group isn’t the size expected.  You’re heading into unknown, undefined territory.

Why can’t you just make your background smaller and make sure everything fits in that smaller space.

Thanks guys!

Are you saying if I have say a background image smaller than the full screen and then simply put my buttons and other display inside that background then anything outside the background image (overlay) will not response to clicks? (i.e.: buttons showing from the current screen (below the overlay)?

That will be fantastic!

Mo

Set isModel=true
For overlay

Thanks jstrahan. That’s what I have now. I will assume then that nothing below the overlay will receive touch events even if the overlay is smaller than the full screen. That will make sense. I will make my overlay smaller and double check on this.

Cheers.

Mo

My overlay covers 80% of my screen and I have no buttons around the outer edge so can’t say if it blocks only under the overlay or the entire scene under the overlay

If it doesn’t block the entire scene below you could have a nearly invisible rect behind the overlay that covers the entire scene which would help focus user on the overlay and block touches