Hundreds of features to explore
Games made in Construct
Your questions answered
Popular & trusted by schools and Universities world-wide
Construct 3 runs in the browser & works offline
Students do not need accounts with us
Our educational partners
Free education resources to use in the classroom
World class complete documentation
Official and community submitted guides
Learn and share with other game developers
Upload and play games from the Construct community
Game development stories & opinions
I am trying to create procedurally generated levels. To do this, I would need to be able to choose different layout widths at the start of the layout. Is this possible? I don't see it as an option in the available system events. Thanks, Morgan.
Nevermind - it's choose canvas size.
Actually, "set canvas size" only changes the window size of the particular layout, I'm actually wanting to be able to set the layout width to a random value. Does anyone know how to do this?
You can't change layout size on runtime. Use unbounded scrolling instead.
shinkan - thank you. I tried that but then the player's avatar goes off of the screen all together. That's too bad that the size of the layout can't be changed at runtime. Do you think that would be a good feature? It would help me easily create randomized levels.
Unbounded scrolling set to Yes lets you make you levels no matter how big or small they are. When you turn it on it will center viewport on XY: 0,0 coordinates, so you need to scroll it to your player avatar position.
Develop games in your browser. Powerful, performant & highly capable.
I am using the scroll to behavior with the main character's avatar but it isn't centering on it. Any idea what the problem may be?
Maybe you could use something like this.
And scale that area to the size of the actual map.