Problem with background colour and flickering and size

Started by Ludde, Sat 18/02/2012 13:56:17

Previous topic - Next topic

Ludde

Im trying to use a background for my game that i have made in paint. But whenever i do a test run of the game only about 1/4 of the background is shown. It's 1/4 zoomed in so it fits the screen, and the character is standing in the middle of it although the area on the screen is not "the walkable area". The screen also flickers and doesn't appear to show the same colours as the original imported file has. I'm using the same resolution on the file as I have in the settings of my game. It's also a 24-bit coloured file, which from what I've understood, should do fine in a 16-bit AGS project. Can anyone help me with this matter? I would really appreciate it....

Khris

This sounds like Win7 64bit.
What happens if you run the game windowed / use another graphics driver?
(Press F7 to compile the game, open its Compiled folder and run it via winsetup.exe)

Ludde

I tried opening the game windowed, and also tried the compiled version, but it didnt solve the problem. I use win 7, and i think it is the 32-bit version but i am not 100% sure....

Khris

Wait, your background has the same resolution as your game, but it appears zoomed in?
From what you describe, it sounds like your game in fact doesn't have the proper resolution. You can set it in General settings -> (Setup) -> Resolution.

The info shown in the room editor isn't what the game uses.

Ludde

I have the same resolution on the image as in the settings of the game. I tried changing the graphics driver and now i get no background at all when i do a test run.....what could be the problem?......

Khris

Hard to say without looking at your screen. Could you upload the background (at a service that doesn't turn it into a jpg)?

Ludde

Quote from: Khris on Sat 18/02/2012 15:29:58
Hard to say without looking at your screen. Could you upload the background (at a service that doesn't turn it into a jpg)?

I uploaded a png version, which has the same resolution as the BMP version of the file. I have the same result in ASG with both PNG and BMP files: black screen with character in the middle. The reason I chose to upload the png file was because when i tried uploading the bmg file it automatically turned into a png in the upload process. I figured it would be better to upload the file as a png because then no encoding would be going on in the upload process.

http://imageshack.us/photo/my-images/80/nybitmappsbilde.png/

Does anyone know a place where I can upload BMP files without automatically turning the file into another format in the process?

Khris

Right, I think I can solve part of the problem.
When you open a room, in order to set the background, you're supposed to click the change button, NOT select "Import new background" from the dropdown menu. Doing the latter will add a background to the room instead of replacing the initial black one, and thus in-game, the background is animated, using the black bg as first frame and the imported one as second frame. That's why the background flickered.

Remove all additional background frames, change the main background to the png and double check your game is set to 320x200.

Ludde

Thanx! Now it works perfectly well! I'm just trying to learn this program, that's why the background i sent you was so lame. Nice to learn that you can have different frames in the background. Heaps of thanx!


Ludde

I'll remember you Khris, in case you ever will need my help, which is unlikely because im such a noob at AGS.

SMF spam blocked by CleanTalk