HELP! Game keeps going blank when changing scenes on older app versions

The bug happened due to clones, I made the buttons clone when they were tapped. Sorry!

1 Like

Oh no, that’s not good — this is a problem from the beta testing we are doing for the next update. We will need to fix it.

Can you describe a bit further what you mean by scenes being super buggy? Is it the project going white, or certain things don’t change scene when they’re tapped?

2 Likes

I’m glad you got the game working again, but it still seems like there is a bug with Hopscotch so I think it’s worth investigating still.

Which part of the code did you change to fix it? (Can you share a screenshot of the clone code if that’s ok?)

2 Likes

i dont know the details of the bug rapterdragon had, but im guessing it’s an overclone issue - when changing a scene, When Game Starts containers are run, and if there’s a Create a Clone of This Object block, the game will exponentially clone objects until a point where the device is running out of RAM or something and will white screen. You can reproduce that simply by putting Repeat Forever: Create a Clone of This Object in any projects and if you dont have a good device [1], fps will drop dramatically and then hopscotch will white screen .

the fix im telling everybody is to put the following code in every of your when game starts container:

When Game Starts
  Check Once if: Clone Index = 0 and (Self)RunOnce = 0
    Set (Self)RunOnce to 1
    // your code here
  End
End

((Self)RunOnce is an object variable)

this slightly long code will act as a When Scene Starts container


  1. not an ipad pro or a computer - not an advanced device in other words ā†©ļøŽ

1 Like

I don’t have it. I updated yesterday at 6:00pm.

1 Like

Thanks a lot for the info, that’s really helpful to know.

Just to check, has this been an issue just in the past few weeks, or was it happening before that? (I am trying to see if it is due to the changes in webplayer 2.1.2 / 2.1.3, or it was from before that)

2 Likes

to my knowledge this was always an issue, so probably before when i joined (sept 2020)

1 Like

For example of I had a button in my game and I changed the scene in game and then I changed back to the scene with the button the button wouldn’t be able to be tapped any more.

2 Likes

i bet half of my seed (555) that this is not a hopscotch bug and that it’s just an overclone bug

send a link and ill be able to fix that issue

2 Likes

This is an old project so it’s very messy Lol

2 Likes

I was just looking into this but couldn’t get the screen to go white. I might need some more information:

  • what device and iOS version are you on?

And just to check, is it this button?

3 Likes

ill make a bug video when I have time. I’m really time chucked with school and after school things.

2 Likes