Home Artists Posts Import Register

Content

Hi,

I don't usually write reports that often, but I just can't help but share a situation that at first did not seem complicated, but in the end almost led to the fact that I did not remove quite a bit of the code for the last update ( I'll jump ahead and say that for the moment I've managed to get everything under control, but in the future I will definitely take into account the experience that I have received over the past few days.)

So, the situation was as follows - I wanted to combine 3 game locations with each other, namely, one of the actions in one location influenced the dialogues in another location, and then, the result of these actions somehow changed the dialogues in the third location. In general - everything does not sound very problematic, because I have already done something similar in the past, but the problem started when I got carried away with the code, and then decided to add more various lines of the main character before entering these locations (and from 3 interconnected 6 locations appeared, because to get to each location you need to use the door corresponding to it).

And it would be fine if everything was limited to only 6 locations - due to the number of actions in each location, it turned out that the number of possible options became too large, and the points allocated for this in the code did not help to curb all this, and with a certain passage it was possible to catch a code error. And the main reason for this is that I was in too much of a hurry, because last month I definitely didn’t succeed much, and I wanted to fix everything this month, and with trying to add something new, I forgot that any action needs to be well thought out in advance, before trying to implement it (especially if each room is in its own zone in the code, which, when originally created, was not planned for such use, so I was needed to add some fixes in that code as well).

One way or another, in the end - I had to take a pencil and a piece of paper and redraw the entire scheme with possible sequences of actions in a particular location, indicating all possible variations and other things, before finally getting a working code (although to be honest - some what I had to remove from my ideas, so how to add them - I would have to rewrite the code again, and I thought it was not worth it).

In general, such situations have not happened to me for a long time, but I will definitely not forget the experience of this one in order not to make such mistakes in the future.

Thank You for Your attention and patience ^^

P.S. Tomorrow I will start experimenting with the combat system in a fight with a robot, while the plans include the idea of adding some quick time moments, since the robot’s attacks, in theory, should be, if not lethal, then very significant, but we’ll see where my experiments will lead me (in case I get an interesting variation of the code in the end - I will use something in the same spirit in the future when fighting very dangerous opponents)

Comments

No comments found for this post.