|
I set up a side-scroller/runner game and it works perfectly in the play panel of unity. But when I Build & Run my platforms and player disappear but my GUI is still there. What is going on? (My game is based on the z-axis if that matters....) EDIT: Comment and tell any other info you need to find out what is wrong.
(comments are locked)
|
|
Make sure you have selected the proper level(s) in your build settings. You might for instance at an earlier point in time made a test in a scene with the gui alone, and you might be repeatedly running that scene. WOW. I'm such an idiot. I changed the name of my scene and never re-added it to the build settings. Sorry for wasting your time. Enjoy the easy points :P
Dec 23 '10 at 09:55 PM
ChimpKing
Don't feel sorry. I find great joy in helping others. Otherwise I probably wouldn't be hanging around here ;) I can't really buy food with the points or use them in other ways. :) Glad your problem was solved!
Dec 23 '10 at 09:58 PM
Statement ♦♦
Yah man, wish there were a million people as nice as you :P Thanks again for helping.
Dec 23 '10 at 10:13 PM
ChimpKing
Thanks, you made my christmas :)
Dec 23 '10 at 10:23 PM
Statement ♦♦
(comments are locked)
|

Check that the Z Axis of the platforms and everything is in front of the background? Also that their are color contrasts and a light actually aiming at the side and not just from the top.
I used toonyshader so light is not an issue (is it?). Also, I didn't put a background yet, so that shouldn't be an issue either.
If you have any warnings or errors in console output, those would be helpful. Also see the log file produced by your build after the game is run for any problems.
I don't have any warnings or errors.... I checked the log and don't see anything wrong too....
Is there anything different with the object that disappear? Do you have any code that is destroying items that might be doing something wrong? Consider creating a script that monitor one or more of these objects and log to file if they become null. In that case, something surely is removing them during Awake or Start.