Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Vilihu on Fri 20/06/2008 04:05:44

Title: My backround is blinking, why?
Post by: Vilihu on Fri 20/06/2008 04:05:44
Here's a nooby question but I'm using windows vista home prerium (in case it make's a differense) and I just finished a second part of tutorial where it tells you to run your game and when I run it my backround is blinking and wrong coloured. I used .png file as a backround, why is that happening?
Title: Re: My backround is blinking, why?
Post by: Gilbert on Fri 20/06/2008 04:10:00
What colour depth is your game set up at? What colour depth is your png file at?
Did you tried setup the game to run in a window or full-screen and see if there is any difference?
Also, check whether you have accidentally added another background frame to make it an animated background.

Well, it may be some display driver issue anyway, but it's worth checking the above questions.
Title: Re: My backround is blinking, why?
Post by: Vilihu on Fri 20/06/2008 04:37:59
After few times trying these advices i got the colours right (don't exactly know how)  but still blinking... Could it be refresh rate? and if it could where do i change it? Thanks for advices so far :)
Title: Re: My backround is blinking, why?
Post by: naltimari on Fri 20/06/2008 04:40:55
Do you have more than one background in the room? Try putting SetBackground(0) in the 'before fadein' event.
Title: Re: My backround is blinking, why?
Post by: Vilihu on Fri 20/06/2008 04:43:53
That did the trick didn't notice there were originally one backround.Thanks a lot! working now ;D
Title: Re: My backround is blinking, why?
Post by: Khris on Fri 20/06/2008 11:22:32
So did you remove the additional background frame...? ;)
Title: Re: My backround is blinking, why?
Post by: Turpan on Sat 21/06/2008 08:50:42
I have the same problem but what do you mean the 'beforefadein event'?!?!?!?!?!
Title: Re: My backround is blinking, why?
Post by: Matti on Sat 21/06/2008 13:17:21
Quote from: Turpan on Sat 21/06/2008 08:50:42
I have the same problem but what do you mean the 'beforefadein event'?!?!?!?!?!

There's a before_fadein-section in every room's script. You have to put the code there..
Title: Re: My backround is blinking, why?
Post by: Khris on Sat 21/06/2008 14:50:45
You don't need the code if you remove the additional frames...