My backround is blinking, why?

Started by Vilihu, Fri 20/06/2008 04:05:44

Previous topic - Next topic

Vilihu

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?

Gilbert

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.

Vilihu

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 :)

naltimari

Do you have more than one background in the room? Try putting SetBackground(0) in the 'before fadein' event.

Vilihu

That did the trick didn't notice there were originally one backround.Thanks a lot! working now ;D

Khris

So did you remove the additional background frame...? ;)

Turpan

I have the same problem but what do you mean the 'beforefadein event'?!?!?!?!?!

Matti

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..

Khris

You don't need the code if you remove the additional frames...

SMF spam blocked by CleanTalk