خیلی خب دوستان عزیز، درباره ساخت چند پایانی بازی میخوام توضیح بدم. در واقع چند پایانی یک مرحله.
برای مثال همین مرحله اول بازی چند سین اصلی داره: ژاندارمری اولیه، اتاق رییس، ژاندارمری با آژیر، ژاندارمری با آژیر خاموش، اتاق رییس، ژاندارمری در آرامش و در آخر کوچه.
حالا داخل ژاندارمری با آژیر خاموش، اونجا چند انتخاب دارید. بعد از ژاندارمری با آژیر خاموش چند سین باقی میمونه؟ سه تا. چندتا انتخاب داریم؟ دوتا(بیشتر ولی اسپویل نمیکنم) پس اگر میخوایم تاثیر انتخاب رو در ذهن مخاطب فرو کنیم، باید برای هر کدوم از اون سین ها، یک وریانت جدید بسازیم با سناریو ها و دیالوگ های جدید. پس برای هر کدوم از سناریو ها یک بولین تعریف میکنیم روی false میذاریمشون. زندانی رو ببری به زندان یک بولین true میشه، زندانی رو بکشی یک بولین دیگه true میشه و ...
البته اینم بگم که استفاده از بولین حتما لازم نیست ولی اینجوری تمیز تره و بهتره.
حالا در یک فانکشن دیگه، ما بر بر اساس اینکه که کدومش TRUE هست به سین بعدی میریم. و به همین منوال ادامه میدیم. در واقع درسته که ما سه تا سین داریم در ظاهر، ولی در واقع شیش تا(بیشتر) داریم
Well, dear friends, I want to explain about the creation of multiple endings. In fact, multiple endings of one stage.
For example, the first stage of the game has several main scenes: the initial gendarmerie, the chief's room, the gendarmerie with the siren, the gendarmerie with the siren off, the chief's room, the gendarmerie in peace and at the end of the alley.
Now inside the Gendarmerie with the siren off, you have a few choices there. After the gendarmerie with the siren off, how many tracks are left? three. How many choices do we have? Two (more but I won't spoil it) so if we want to impress the impact of the choice on the audience, we have to create a new version for each of those scenes with new scenarios and dialogues. So we define a boolean for each of the scenarios and set them to false. Take the prisoner to the prison, a Boolean will be true, kill the prisoner, another Boolean will be true and...
Of course, I must say that it is not necessary to use Bolin, but it is cleaner and better this way.
Now in another function, we go to the next scene based on which one is TRUE. And we continue in the same way. In fact, it is true that we have three scenes in appearance, but in reality, we have six (more).
کدر🧅
🆔
@Crestfallen_Studio