[Solved] Properties unavailable on my player ship object [closed]


JSFiddle here: http://jsfiddle.net/fjdC9/1/

appendPlayer: function (player, xPosition, yPosition){
    player.appendTo('#huyakWrap');

    player.attr('style', 'left: ' + xPosition + 'px; top: ' + yPosition + 'px');
    $player = $('#player');
},  

Once I figured out the actual problem, it was simply a case of you trying to find the element before it exists (as the first step of your KalininHuyak method/class).

I moved the selector into the append (for now). You simply need to find the player object after it has been appended.

solved Properties unavailable on my player ship object [closed]