Title screen crashing
Stryfe01
Member Posts: 146
Hi devs. I'm having an issue with my title screen crashing.Right now it consists of a background actor with cherry blossoms animated and sound, a title actor, a start actor with a change scene if touch is pressed, and an instructions actor.
For some reason, these things happen:
Touch anywhere on the screen and it loads the main menu (when it works), otherwise the whole app crashes. I thought it was the viewer after some review, so I built a beta. and yup, it is the title scene.
I just recently added the audio, so I'm sure that isn't what's doing it. I've completely deleted and recreated the scene several times.
For some reason, these things happen:
Touch anywhere on the screen and it loads the main menu (when it works), otherwise the whole app crashes. I thought it was the viewer after some review, so I built a beta. and yup, it is the title scene.
I just recently added the audio, so I'm sure that isn't what's doing it. I've completely deleted and recreated the scene several times.
Comments
Sometimes, if you've deleted variables, or 'changed scene' to a scene that doesn't exist, it'll crash things.
Hope that helps,
QS
Dr. Sam Beckett never returned home...
Twitter: https://twitter.com/Quantum_Sheep
Web: https://quantumsheep.itch.io
If so, you most likely have either a syntax error (maybe a missing parenthesis in some expression somewhere)
or a missing attribute somewhere (it will just say 'game' or 'self' without the rest)
If the title scene appears, the syntax error is most likely NOT on the title screen.
Check all of the otherwise sections in your Rules. Sometimes you can overlook them.
Actors can sometimes become corrupt. You can try deleting them from the scene and dragging them back out again.
Isn't it weird though that it ONLY crashes when I use the title screen? If I move it to the end, of all the scenes, and boot to the game runs fine....
I would make a duplicate of the game and start deleting actors in that scene one by one.
When it doesn't crash, you've found the corrupt actor.
I'm going to have to figure something else out....This is too frustrating. Thanks for all the help though!
`http://gallery.me.com/stryfe01/100049`
It should be something like this;
Every X seconds
Change attribute game.choose to random (1,8)
That top timer looks weird as it seems to say every1, then some attribute to change an attribute.
Try adjusting that timer just to say every x amount of seconds change attribute, the rest looks ok
Right now it is Every spawnTime
Change attribute game.choose to random (1,3)
The thing that looks like a 1 is the drop-down menu arrows.
Going to run home and give it a try.
It was the animations....Is there a limit to how many frames you can have? My smoke animations are about 35 frames each. I received the best animated look when I changed the speed to 15fps. But until I hear back from you guys i'm just going to play around with different settings....Including eliminating frames.
I realise your question is to beefy but I'll add my penny's worth if that's OK...
There's possibly a limit to how many frames in a single animation you can have but this'd be so many it'd not be a worry (except to file size). But if you've many different animations with lots of frames running at the same time, that could cause probs, certainly.
A couple of suggestions: by knocking out frames from each smoke animation, you'll not see much difference visually on-screen, I reckon. Maybe make your amount of animation frames to 20, 10fps, and my guess is you won't see any real difference in quality. (There might be other people who'd disagree with me; I wait to see... ;-)
Another thought: you wrote about animation for your smoke, in plural, i,e different animation sets for each smoke effect. Maybe, especially if as one smoke anim. moves off screen and another appears, you could use the old cartoon trick of using a copy of the same smoke animation; as you know, this is done all the time in games. You'd save some processing power/resources there as well, i'm sure.
:-)
""You are in a maze of twisty passages, all alike." - Zork temp domain http://spidergriffin.wix.com/alphaghostapps
Never hesitate to offer your thoughts to me. Good or bad. I get what your saying and I ended up cutting it down to about 15 animations each. Your right, in the preview if i play around with the animations, I can see a difference. But in the actual viewer on my phone, you can't tell. The other smoke animations were for different colored actors. Basically when you destroy an actor it would spawn the corresponding colored smoke. But I can work with just one color.
Thanks for all the help quantum, firemaple, beefy and gyro!
Now I have another frustration to deal with...I have the scene working, but adding music crashes the scene! LOL it never ends! I'll keep you posted and move that to another thread if I need to.