Play Home Contribute Github Join Us! Discourse Staff Members Github Contribution Guides Team

Sarven-siege probem

when i try to move to item position or fried position i keep getting this error in the photo
i even bought another shows but it’s the same issue

please advise ?

The error clearly says

Cannot read property pos of null

It can be that in the first tick of the game the coins do not exist yet, so you always have to check:

    item = self.findNearest(self.findItems())
    if item:

I’ve also just added a bronze coin to the first frame so that you don’t have to worry about that error on this level any more.

thanks nic but i faced this issue in many levels not only this level