Hello everyone,
I would like to suggest an addon which I have seen in RPG maker software so far. I think it might not be that easy to program it, but I think it`s worth it because this addon helps you to significantly improve the performance of your project.
The addon should allow you to place labels inside the code of your event sheets and to call actions in other places which will make C2 jump to that label, which means that C2 skips the code between the 'Jump to label' and the 'Label' command and executes the code from the 'Label' position.
How is that handy? I'll give you two examples (which are attached to this post):
In example 1, C2 checks every 5 seconds which value the variable 'Sound_Variable' occupies and plays a sound corresponding of the variable's value. As the value reaches from 1 to 100, C2 will have to check 100 conditions, which certainly decreases the FPS, before it can create the object 'Blue'. Let's say that Sound_Variable has a value of 48, then C2 will still have to check condition 49 to 100 and determine them as false. By using the 'Jump to label' addon, this becomes avoidable:
In example 2 you can see that there is a label called 'Label1' at the end of the 100 conditions and each condition contains a Jump to label action. Lets say that Sound_Variable=48 and so condition 48 is true, C2 will read the Jump to label1 action and skip all conditions from 49 to 100 and execute the code from the Label1 position on, then create the object 'Blue', which increases the FPS in comparison to example 1.
Is it possible to create an addon like this?