Dark Bit Factory & Gravity

PROGRAMMING => Freebasic => Topic started by: nzo on December 09, 2009

Title: Need another pair of eyes...
Post by: nzo on December 09, 2009
Nearly finished this one and run into a problem with the scroll rotation and I've been staring at it for far too long now. If someone could point out the obvious mistake I`m making here, I'd be really grateful :)
It's a similar routine to the nightmare scroll, but it should have been an easier one than that?!
Anyway, feel free to have a go at it - I was pulling my hair out over it..

cheers
Title: Re: Need another pair of eyes...
Post by: Shockwave on December 09, 2009
Can't get it to compile because it's missing nzo_funcs

Looking at the exe the scroll seems to dissapear in places, that's pretty odd tbh the first things I'd test is to turn the black part of screen to pink or something to see if it's actually being drawn, secondly I'd be inclined to check things like the status of variables, for example how are you determining if the scroll is on back / front face? are there any instances where it could be neither?
Title: Re: Need another pair of eyes...
Post by: nzo on December 10, 2009
Sorry  - added the funcs file.
The missing bit of the scroll isn't the problem (it's remmed out in the code to make it easier to see the problem)
The problem is the rotated face of the scroll is "off" - you might need to let the scroll go for a bit to see it more clearly. This method worked fine for the nightmare scroll but with a sine scroll added it seems to mess up. I've tried all sorts of ways to get it to behave properly..
Title: Re: Need another pair of eyes...
Post by: Shockwave on December 10, 2009
I need to download the original to see because I can't see the problem with it sorry.

I think you're saying that the letters don't rotate back on but that part of the code is commented out anyway. I'll download the original and take a look at it when I come home from work.
Title: Re: Need another pair of eyes...
Post by: nzo on December 10, 2009
Hmm, don't know why I posted the first one. Went back to it and it was almost right. I really must have been looking at it for far too long!