How to ensure current SKScene has fully loaded before engaging it with the GamePad Controller?
MAJOR REWRITE FOR THE SAKE OF HOPEFULLY (?) INCREASED CLARITY
The problem is this = when stopping sound is involved when I do switch SKScenes
, if I press the buttons of the GamePad Controller (which cycle thru these other SKScenes
) too fast, the movement of the Game Pieces fails to resume when I return to the Game Scene after the above cycling.
This problem occurs only with the os(tvOS)
version, but not with the iPad
version. And the reason for this distinction is that each SKScene
for the iPad has to fully load due to the fact that the button I press to switch SKScenes
is at the top-left corner of the iPad
-- so, by definition, by the time I have access to this button, the current SKScene
has fully loaded.
By definition, there is no such button for os(iOS)
.
Given this button’s absence, I need the Swift version of jQuery’s
$(document).ready (function() {.
Any help will be appreciated to the rafters ...