1 decade ago by FabienM
Hi,
I have a game with several levels.
One of my entity has a timer in it ( with the javascript function setTimeout)
When I load my second level, I can always see the logs from level 1's entities
So I looked into the "loadlevel" function , and it appears that the javascript objects are not destroyed, just erased form the "entites" array.
Is that normal to keep all the javascript objects ?
How can I do with my timer ?
thx
Fabien
I have a game with several levels.
One of my entity has a timer in it ( with the javascript function setTimeout)
When I load my second level, I can always see the logs from level 1's entities
So I looked into the "loadlevel" function , and it appears that the javascript objects are not destroyed, just erased form the "entites" array.
Is that normal to keep all the javascript objects ?
How can I do with my timer ?
thx
Fabien