#117614 - Vengyr - Tue Feb 06, 2007 12:55 am
Good day ones again... (I feel like a bother to you guys now >_<)
Well you guys might still remember me because of my other newbie questions. but now I got some other kind of problem and asked around who I know that programmed for the gba before but they didnt have an diea either...
first things first. here is an image of the game I am working on.
Now on first run it might look normal... But as soon as you have shot one seed (you do this by clicking with A button on the seed. then Aim and press A again). and would turn on rapid A or just hit A a few times you notice that ones in awhile the screen will shake. the more seeds you shoot the more the screen will shake. I wondered if any of you had any idea what might be the cause of this weird problem. Thanks in advance and just PM or post here for more information ^^[/url]
#117615 - tepples - Tue Feb 06, 2007 1:02 am
VBA says the game uses mode 2 (two rotation backgrounds). If you change the scroll values of a rotation background during draw time, you'll get shaking. If you are not using HDMA to the rot/scale registers, make sure to write to the scroll values only once per frame.
I also notice that the sprite clipping is a bit screwed up. A sprite in X=-32 through X=-1 should be drawn as X=480 through X=511.
_________________
-- Where is he?
-- Who?
-- You know, the human.
-- I think he moved to Tilwick.
#117616 - Vengyr - Tue Feb 06, 2007 1:06 am
Thanks allot I just noticed the one that did the scrolling did it several times.
But that leaves me with another question. after a few seeds the shaking gets so bad the game just crashes entirely. I wonder will that be ficed the same way or might there be something else wrong?
#117617 - sgeos - Tue Feb 06, 2007 1:13 am
My guess, your program has a bunch of small bugs that add up and or one big one.
Have you tried aging you program? Ie, you leave it one for a long time (overnight). This will catch memory leaks or other things that accumulate during time without human intervention.
-Brendan
#117618 - Vengyr - Tue Feb 06, 2007 1:15 am
I didn't try that yet. But it only happens after you shot a seed. and a plant grew out of it. but I will leave it on tonight to test. thanks in advance.
#117622 - sgeos - Tue Feb 06, 2007 1:30 am
It sounds like a buffer overflow to me...
-Brendan
#117623 - Vengyr - Tue Feb 06, 2007 1:32 am
The weird thing is it's only after shooting a seed. mind if I send you the source to check into? I warn you tho its 1 big mess...
#117624 - keldon - Tue Feb 06, 2007 1:40 am
That is one of the reasons why an order of progression is recommended. There is far too much to encounter for the first time on something this big. You appear to have good initiative which is helping you to achieve a lot in one go, but remember that less is more and worse is better!
#117625 - Vengyr - Tue Feb 06, 2007 1:47 am
Well I can't help it much to be exact this is a school assignment and they expect us to get a working demo. We worked with 5 people on it. We are already passed the deadline and got 3 weeks extra to clean the code and to optimise it. But now the teacher mailed. and expects us to hand it in before friday... I like to do this. But allot of messy code came from the rushing in the end and it didnt help that I was sick when adding everything togheter.
#117629 - keldon - Tue Feb 06, 2007 2:13 am
It is always funny when you rush to do something and it takes ages, then when you take your time not only do you get it done better but far quicker!