Dungeon Tutorial / A Problem
Hi, i'm java programmar and i've started now with HaxeFlixel, i've read the tutorial "Dungeon Crawler", and the problem is the seguent:
When I create the MenuState Class and add the Button "Play" etc.., when compile the class who start first is PlayState and i'm not see nothing, only black screen, maybe because in the main not was declared MenuState? How to work, in the tutorial doesn't tell this..
If i change on main class PlayState with MenuState i'get an error-> flxG.Switch ecc..
Obviously if i add the Button on PlayState it work and i see everything.
Sorry for the bad english
It might help to compare the source to see what's going on.
I think that is the tutorial you mean:
I've already read this source before write this topic, but now i've read my code and the problem was the library.. I haven't import flixel.flxG in MenuState xD (an afternooooon)
Strange if i add in main PlState doesn't appear flxG error else yes :\
But thank you for your help!!
You're welcome, but you figured it out. Good luck!
@republicdos I have been having the same problem how did you import flixel.flxG in MenuState. Did you declare it before Class declared or what?