Problem with placing parts of an image in AGS

Started by alkis21, Sun 21/05/2006 23:48:53

Previous topic - Next topic

alkis21

I have another graphics problem that I hope someone who is not tired of my questions yet will be kind enough to solve...
Imagine I have a room that features a lamp on a desk. The lamp is initially off, and I want the player to be able to turn it on. So I import the complete room image with the lamp turned off:



and then I import the part of the image where the lamp is turned on:



On Paintshop, I'm able to position the image perfectly:



but when I try to do the same on AGS, I can't. I get the vertical position correctly, but when I position the image at 170,187 it's too far to the left (note the posters on the wall to see the inacuracy):



and when I position it at 171,187 it's too far to the right:



Note that my game is 800x600, 32-bit. I never had this kind of problem in my previous 640x400, 256 colors game.
Any idea what I can do?

Thanks in advance.

Radiant

Alignment in AGS is done on a 320x200 or 320x240 grid. Needless to say an 800x600 grid has positions that fall 'in between'.

So what you do is take tha part of the image where the lamp is turned on, transpose it one pixel to the right (or, add a column of blank pixels on the left) and import that to AGS. You should be able to position this perfectly. (if not, try transposing two pixels and you're set, since 800/320 < 3)

alkis21

This must be the only forum on the internet where one can get an answer to his problem just a few minutes after his post. Thank you so much, it worked.

Ashen

I think at 800x600 a 400x300 grid is used to keep the ratio, but adding an extra column of pixels as Radiant suggested should still solve it.(EDIT: As it does.Alkis posted as I was typing.)

If you never had this problem with 640x400 games, you must have just been lucky with the sizing and placement of you objects, as it's a fairly common problem.

BTW: Why is this in Adventure related, and not one of the tech forums?
I know what you're thinking ... Don't think that.

alkis21

Quote from: Ashen on Mon 22/05/2006 00:15:20
BTW: Why is this in Adventure related, and not one of the tech forums?

Because the last time I asked a graphics related question in the tech forum, you moved it here.  :-\ I wasn't sure whether this was graphics or AGS related.

SMF spam blocked by CleanTalk