I Assume the Scene's Size can't be changed during runtime?
Chakku
Member Posts: 1,513
Hey guys,
I'm making a custom level designer in my game. I want the user to have the option of selecting the level's size, so I set up buttons that brought up a keyboard input, which changed Scene.Size.Width and Scene.Size.Height.
I'm certain I've set everything up correctly, but it's not working in Preview or GameSalad Viewer.
I even have Display Text Actors that are displaying the scene's height and size.
Even when I change the hight and width to 1 during gameplay, it doesen't update.
Is there something obvious that I'm missing, or is scene size one of those attributes (like visible and movable), that although GameSalad Creator allows you to setup a rule with it, they can't actually be changed during runtime?
Thanks
Chakku
I'm making a custom level designer in my game. I want the user to have the option of selecting the level's size, so I set up buttons that brought up a keyboard input, which changed Scene.Size.Width and Scene.Size.Height.
I'm certain I've set everything up correctly, but it's not working in Preview or GameSalad Viewer.
I even have Display Text Actors that are displaying the scene's height and size.
Even when I change the hight and width to 1 during gameplay, it doesen't update.
Is there something obvious that I'm missing, or is scene size one of those attributes (like visible and movable), that although GameSalad Creator allows you to setup a rule with it, they can't actually be changed during runtime?
Thanks
Chakku
Comments
It'd be a real shame if this doesn't work, as it's a great way to support multiple devices screen sizes without needing to create and maintain different scenes for each resolution...
Lump Apps and My Assets
Nope, I want the user to be able to select how big he wants the scene to be.
I've found a workaround, but for the record, scene size cannot be changed during gameplay, even if it does show as changed if you use a Display Text Actor to Display the size attributes.
Chakku
The official method for submitting bugs is through the bug report system @ http://gamesalad.com/support. Please submit a bug report if this is something you would like addressed. Also, the correct way to request a forum thread be checked by our moderator would be something to the effect "Would @SaladStraightShooter please look into this issue?", not "Any chance someone from GS will step down from on high and address?" You can ask and make the same requests/statements, but toning down the antagonistic rhetoric will surely garner better results.
Oh yes, I would send a bug report, but I don't think it's a bug. Some of the attributes aren't meant to be changeable during runtime, and that's intentionally that way.
However, it would be nice if they did not allow you to select those particular attributes on the left-hand side of the "Change Attribute" Behavior. This would clear up a lot of confusion, especially for new users.
But yes, it would be good to be able to change the scene's size, for the way your using it, as well as my custom-sized level designer, as this allows my users to pick how much space they want their level to be, which is really cool to be able to pick
I have found a workaround, but it's a bit unnecessary extra work for me/longer loading, and kinda buggy.
@SaladStraightShooter could you please confirm that this is indeed an intentional limitation? Thanks
Chakku
If you create the object controlling the camera AFTER the scene is created - in my case, a level is being generated then the player actor is spawned - resizing the scene seems to be working correctly. at least in relation to the camera.
Yep, that's exactly my workaround! Works well, but is kind of unnecessary, and not as smooth. Hopefully we can change the scene's size soon.
Chakku