Here is the hype file: https://www.dropbox.com/s/p94t32pd1oecibl/TopDelivery.zip?dl=0
This is driving me crazy. Im using the scroll to change between scenes, the same code from here:
In the same post, I make a similar question: “Is it possible to "unload" the script so when I reach certain page” and I was answered by DBear:
You would need to use removeEventListener and whenever / wherever you want to remove it use:
And I just did that, but it didn’t worked, I didn’t bother him since I know I suck at coding and I assumed I must be doing something wrong or there is something else, dunno, like making a function or a timeout, or something.
But after so much trying and headaches, I decided to ask to the right people again:
Is it possible to "unload" the script so when I reach certain page? in this case, when I reach certain scene?
I also noticed that, even if the script is loaded in the first page, it still works on any scene, Im sure this is intentional.