- Joined
- May 4, 2016
- Messages
- 3
- Reaction score
- 1
- Primarily Uses
For some reason, my code is running before the actual game, and I cannot access the $gameSystem global constructor. I tried this:
(function() {
$gameSystem.onBeforeSave();
})();
Did not work returned: Can not read property 'onBeforeSave' of undefined
Also tried
window.onload(function(){
$gameSystem.onBeforeSave();
})
Same Error,
What is going on? How do execute my code after $gameSystem is loaded.
(function() {
$gameSystem.onBeforeSave();
})();
Did not work returned: Can not read property 'onBeforeSave' of undefined
Also tried
window.onload(function(){
$gameSystem.onBeforeSave();
})
Same Error,
What is going on? How do execute my code after $gameSystem is loaded.

