Jump to content

View more

Image of the Day

The night is still, but the invasion brings chaos. #screenshotsaturday #hanako #indiegame #gameart #ue4 #samurai https://t.co/cgILXuokoS
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.


Sign up now

Resetting States in Slick2D

4: Adsense

Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.


  • You cannot reply to this topic
2 replies to this topic

#1 Dr Lazy Bean   Members   

105
Like
0Likes
Like

Posted 24 July 2012 - 06:19 AM

Whenever I go back to the Main Menu then back in to the game the state does not reset
What can i do to fix this?
Thanks

#2 Trihex   Members   

242
Like
1Likes
Like

Posted 24 July 2012 - 12:06 PM

If I remember correctly, the enter method is called whenever you transition into the state. So make sure you are overriding that method, and reset any variables to the default state.
Eric ArmstrongTrihex Softwarewww.trihex.com

#3 Dr Lazy Bean   Members   

105
Like
0Likes
Like

Posted 24 July 2012 - 03:58 PM

Thanks :)




Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.