var shot=wade.getSceneObject('playerShot').clone();
shot.setName();
console.log(shot.getName());
shot.setPosition(this.getPosition().x,this.getPosition().y-100);
wade.addSceneObject(shot);
shot.moveTo(this.getPosition().x,-wade.getScreenHeight()/2-shot.getSprite().getSize().y,200);
Uncaught TypeError: Cannot read property 'split' of undefined
Why this line: console.log(shot.getName()); don't work?