Everything should be possible as long you describe exactly how it works.
Example:
Do you mean something like this?
The circuit has been cut it and they are two components at the two ends:
-Going left side the last component is Resistor1
-Going Right side the last component is Resistor2
Which you can already get from the debug string if you look to the last components, look at the picture.
If it's not that can you explain it a bit more, this assuming that we start always from the Switch? Anything can be done if you just explain how it works exactly including all the different situation that can happen, other ways it's confusing and it will take longer to give the right answer.
What I meant is to separate a single component from the circuit in order to be able to measure it with the multimeter. In the example you showed in the image, resistor2 would be disconnected from both sides, that is, it would be completely separated from the circuit. The reason is that it has two values: one when connected and the other when disconnected.
==========================
> - I need to implement the multimeter (as you may have seen in the simulator) to measure the components when they are connected or not. This happens at the ends of the component. What do you suggest for that?
3-If you mean how to connect this:
Then you can add it as a normal component but you just don't include it when you check if they finish the circuit in the right order, instead, it will act as a wire if I understood you correctly. Basically, it will be skipped for circuit check but it will be used to see who is connected to it only. I can have a look if you want but I just need to know exactly how this will work.
Sorry, but as I cannot see this image, I don't know if I understood your comment correctly. I would use the multimeter to touch the probes to the ends of a component and the value would appear on the panel. In the simulator that I shared the link in the first post, the multimeter is at the top right of the screen and you can drag it to use the probes.
==============================
> - I thought to use tile background as the wires, but I need those wires to show the energy inside them, as happens in the simulator and I cannot use tileBG for this. I also used sprites, but when I stretch the wires, the animation also stretches. Do you know another solution for this?
Awesome! It is possible to control this animation, right? For example, use the switch to turn on (show the animation) and turn off (stop the animation) or still disable the animation when the circuit is cut?
EDITED: In the current structure, it is necessary to define in the variable the number of items and the order of these items. It would be possible to consider the wires as a single item regardless of the amount, that is, if you join several wires, the program understands that it was included the wire that is requested on the order of the value of the variable? I am asking this because putting together multiple wires instead of using just one shouldn't change the result.