Nested Rainbow Blocks cause womp & restart errors

Original post for reference: https://forum.gethopscotch.com/t/you-can-talk-about-your-hopscotch-coding-here-24-official/60006/7534?u=temm

For some reason, I have discovered when you have a rainbow block containing itself and another block of some kind, then switch to just the rainbow block in a check if else, it restarts the project and womps it if you attempt to do this again.

Originally I couldn’t figure out why it was doing this but I think I have narrowed it down to this code:


When the game starts the variable starts with a value of 1, but switching it to anything else causes the error.
@AwesomeOnion @Yuanyuan

Project link: bugs 🐛 by Temm

8 Likes

Interesting.

3 Likes

Hmm this is weird first non Nameless post

3 Likes

Thank you for reporting this!

13 Likes

You’re welcome.

It is indeed interesting

3 Likes

It looks like it gets into an infinite loop. Until this fix this add a wait 0 before in the else part and it might fix this for you.

4 Likes

By experimenting with your code, I found that if you put at least one or none in either block in each space, it works fine whatever value

I think that the loop made a loophole and it cant handle how many inpu

1 Like

new duck duck goose form: loop loop hole

1 Like