Skip to main content
cegsea9669
Participant
October 14, 2016
Question

Error 1120 and 1172

  • October 14, 2016
  • 1 reply
  • 238 views

I'm creating a game and 2 days ago it was working perfectly, now all of a sudden I'm getting the following errors

1172: Definition core:Screen could not be found

1120: Access of undefined property Screen

The code it's referring to is:

import core.Screen;

stop();

(this.parent as Screen).getStateManager().nextState();

I haven't changed this at all in the space of time it was then wasn't working. Can someone give any explanation as to why that may have happened and how to fix it? Thanks to all answers in advance

This topic has been closed for replies.

1 reply

Ned Murphy
Legend
October 14, 2016

Maybe the Screen class file was removed from core, or the core is no longer in your class path.