You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
createNewLedge: function(){// Get the first dead pipe of the groupvarledge=this.platforms.getFirstDead();varx=750;vary=this.rand(250,450);ledge.reset(x,y);<---// Error here// Make the length of the ledge be variableledge.scale.setTo(0.5,this.rand(0.5,1));
I think it's because the first platform startLedge never gets destroyed. So getFirstDead() never gets called. Once the specified number of platforms has been blitted, reset gets a null object, hence the error.
The text was updated successfully, but these errors were encountered:
I think it's because the first platform
startLedge
never gets destroyed. SogetFirstDead()
never gets called. Once the specified number of platforms has been blitted,reset
gets a null object, hence the error.The text was updated successfully, but these errors were encountered: