F
F
FC182019-10-31 21:56:57
Android
FC18, 2019-10-31 21:56:57

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

2 answer(s)
G
GavriKos, 2019-10-31
@GavriKos

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.

A
Algorithm_00, 2019-11-01
@Algorithm18

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 question

Ask a Question

731 491 924 answers to any question