Object problems!

Started by RetroJay, Tue 09/10/2007 04:57:35

Previous topic - Next topic

RetroJay

Hi.
I`m having a problem with objects.
When I create an object and place it within my room it looks fine and in place.
When I test my game the object that looked fine in the editor is a few pixels out and looks out of place.
What am I doing wrong?

Any help would be....Well....Very helpfull.:)

Khris

#1
Did you put the object on a walkable area with a zoom factor other than a constant 100%?
Because the scaling affects objects, too.

To change this, call "oObjectname.IgnoreScaling = true;" in the room's before fadein.

(And btw, this belongs in "Beginner's Technical Questions".)

RetroJay

Let me try to explain.
I have a 640x480 room with no 'walkable areas' as it is a close up of a photo you have examined.
The corner of the photo has been torn off.
I used my paint package to remove the corner of the photo and created an object from it.
I want to now place this object in my room completing the photo.
Obviously this will not be visible until you find the corner later in the game and attach to the photo from you inventory.
This however is the problem. The object looks fine in the editor but is out of line in the game.
I hope you understand and can help. Thanks :)

Khris

Ok. Well, the only other thing I can think of: with 640, make sure all objects are on even coordinates. Internally, the coordinates are still handled as 320 ones.

But you said it's a few pixels off, right? Hmm.

Ashen

Can you post screenshots (editor and in-game)? It might be easier to diagnose the problem if we can actually SEE it. Unless it is the 'even coords in 640x480' problem, of course.
I know what you're thinking ... Don't think that.

Da_Elf

i think i know whats happening. even though your room is 640x400 its still trying to create coordinates for objects in 320x200 mode. usually you can be off by a pixel and its noticable so what i did sometimes was to go into photoshop and add one vertical row of pixels to the object

RetroJay

Hi Guys.
Sorry Ashen but for some reason I can`t seem to post images.

However due to the very helpfull posts I think that you ALL have solved the problem for me.
It does, as you all so rightly say, appear to be an 'even coords' problem.

Thankyou very much. ;D

SMF spam blocked by CleanTalk