this is a little code helper/addon I made in about 30 minutes to help with larger script based programs. for an example of this in use check out the insides of this project I made: https://scratch.mit.edu/projects/787982608/
press space to see the sprite swap the code