The bug happened due to clones, I made the buttons clone when they were tapped. Sorry!
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?
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?)
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
-
not an ipad pro or a computer - not an advanced device in other words ā©ļø
I donāt have it. I updated yesterday at 6:00pm.
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)
to my knowledge this was always an issue, so probably before when i joined (sept 2020)
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.
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
This is an old project so itās very messy Lol
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?
ill make a bug video when I have time. Iām really time chucked with school and after school things.