sub-classes that extends actor
By GamesGrinder1998, with 9 replies.
Last reply by danpost, over 11 years ago:
Well, you could add an instance int field to the NextButton class and have the world that creates it pass its screen number to it. Then, have the act method in the NextButton class use a series of 'if-else's or a 'switch' statement to proceed to the proper world.