Thanks, I had just tried a quick test, but not sure if that was the way to go. Will this properly call the add they have in the my world base class? Will there be any player spawning issues when they change screen?
oh in your world1 prepare method you have:
Player player = new Player();
addObject(player, 50, 415);
which makes this player show up locally, you have a Actor called Player that is not being initialized for some reason (even though it looks like MyWorld constructor makes one, but is is not) Change in prepare on room1 to:
Player = new Player();
addObject(player, 50, 415);
and the Player Object becomes not null.
There may be an instance of Player that is not referring to the one we see on the screen; Danpost might know what is up as to why it is null. I might try removing the actor from the world, clean up anything that referenced then and then re-add them (the player) and see if that helps.
Sound Attribution:
Title: Life Crisis
Author: RepaidGateman
Location: http://www.flashkit.com/loops/Ambient/Electronica/Life_Cri-RepaidGa-10581/index.php
Direct Link: http://www.flashkit.com/imagesvr_ce/flashkit/loops/Ambient/Electronica/Life_Cri-RepaidGa-10581/Life_Cri-RepaidGa-10581_hifi.mp3
I had to convert it into a wave file since there was an exception with the playing of the sound (index out of range) thought I was later able to correct it looping the mp3 had a stutter even when all silence had been cut. The Wave file the pause is a lot less noticeable (but is 10 times the size) I will just have to find a long mp3 and do a fade in and fade out so the looping will not be as apparent. Flashkit.com is a great place for free resources. :D
2014/1/14
Epic Quest
2014/1/14
bezerk
2014/1/13
Epic Quest
2014/1/13
bezerk
2014/1/13
Epic Quest
2014/1/13
Epic Quest
2014/1/12
Wilhelm Tell
2014/1/10
bezerk
2014/1/10
ContainerCatchingTruck