Altering Native Game Resolution...hotspot misalignments

Started by MusicallyInspired, Wed 19/08/2009 17:57:36

Previous topic - Next topic

MusicallyInspired

I've got an AGS game started. I was halfway through completing work on the first area and discovered that I had really wanted my game to be in 640x480 with lo-res graphics mainly but also with hi res graphics in certain areas. But instead I mistakenly set the game resolution to 320x240. I understand I have to do all the work on the object placements, walkable areas, regions, and such all over again that's no problem (though it'll take a while).

But one thing I noticed was after I had resized the game and got a few things working again I tested it and the cursour hotspot is misaligned slightly to the lower right. No matter what it hovers over. So the dead center of my mouse cursor has to actually be slightly lower and to the right of the hotspot/object in order for the game to show that it's hovering over the center of the object/hotspot. I know this sounds confusing but I can't think of an easier way to describe it. Basically when my mouse hovers over the center of a small object/hotspot it doesn't sense it at all unless I go slightly down and to the right (which sometimes, if the object is small enough) isn't even touching the object I'm hovering over at all...yet that's the only way it works. Is this a bug from upscaling my game? Is there a remedy?
Buy Mage's Initiation OST (Bandcamp)
Buy Mage's Initiation (Steam, GOG, Humble)

Pumaman

Have you checked the HotspotX and HotspotY properties on the Mouse Cursor to check that the cursor hotspot is set correctly?

Khris

Sorry, this post doesn't contain help.

But:
Quote from: MusicallyInspired on Wed 19/08/2009 17:57:36I had really wanted my game to be in 640x480 with lo-res graphics mainly but also with hi res graphics in certain areas.
Just wanted to say that this sends shivers down my spine. Mixing resolutions is frowned upon (by me at least ;)) and I can't think of any situation where it wouldn't look ugly.

Snake

I'm sorry to help Khris clutter this thread with unhelpful posts, but I completely agree with him 110%. I personally can't stand a 640x400 resolution game with ANY graphics scaled up from 320x200 (like cursors for example).

It irks me as much as someone using the default cursor sprites or leaving the cursors cyclable on the title screen.
Grim: "You're making me want to quit smoking... stop it!;)"
miguel: "I second Grim, stop this nonsense! I love my cigarettes!"

MusicallyInspired

I was debating the whole idea myself, but there is a good reason for it. Whether it would be worth it to upscale a whole game just for a small handful of hi res sections is the real question. I would have just kept it in 320x240 but my companion asked me to try to switch it over anyway so I said I'd try a hi res build to see how hard it would be to convert over, which it seems is proving difficult. Might not even happen. But just in case I have another game that I might want to switch over to hi res sometime I was wondering if this was an issue or not.

At any rate it's probably the cursour hotspots...I never even thought of that.
Buy Mage's Initiation OST (Bandcamp)
Buy Mage's Initiation (Steam, GOG, Humble)

SMF spam blocked by CleanTalk