Answer the question
In order to leave comments, you need to log in
Is it necessary to create a separate script to change each scene?
The game consists of many frequently changing scenes (change when you press a button). Is it necessary to create a separate script to change each scene, or can it be done more compactly in order to avoid confusion?
Answer the question
In order to leave comments, you need to log in
Can be made more compact. For example, add a parameter (scene name) to the button event listener. Or make different listeners but in one script.
Alternatively, you can create one scene, move the camera by changing the coordinates when you click on the button to a new event window and work with it. But it’s only suitable for non-weighty projects, but in general it’s better to do it according to the classics through a script, even though this will make the game weigh more (although everything works the same way through scripts ...).
The main thing is that it works quickly, and considering that if the game is not an AAA project and everything works on scripts, then everything will be perceived normally in terms of size and work.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question