[SOLVED] Cursor alignment

Started by Paul Franzen, Sun 25/05/2014 21:31:08

Previous topic - Next topic

Paul Franzen

I'm having trouble explaining this in my head, but hopefully it makes sense to someone!

In the game I'm working on, we have four primary cursors: LOOK, TALK, WALK, and HAND. They look like this:


We recently added the black pointers to each of the cursors to make clicking more precise, since some of our testers were having trouble clicking on things. This is messing with the way the cursors line up with each other. You right-click to change cursors, and as you scroll through the cursors it ends up looking like this:


i.e., the WALK cursor ends up sticking out from all the others. Not exactly a game-breaker, but IMO it looks weird.

Is there a way to tell AGS to align cursors by the top row of pixels (as in the first image), instead of by the pointer/hotspot? I tried looking through cursor functions to see if there was something like a SetCursorAlignment, but no dice. The other obvious answer would be to switch the WALK pointer to the upper-left, so it matches the others, but I'm reluctant to do that because it might make walking on the bottom of the screen unreasonably awkward. (Pretty sure the walk cursor would go off-screen.)
The Beard in the Mirror (formerly testgame) - Out now on Steam! http://store.steampowered.com/app/385840
Other games I've worked on: http://paulmfranzen.com/games/

Khris

You can't "align" the cursors; the cursor image is positioned so that its hotspot ends up at the current mouse position. (That's the entire point of setting a hotspot and having a visible pointer in your cursor icon.)
The only way to fix the jump is to move the mouse several pixels down when the game switches to the walk cursor, and several pixels up when it switches away from the walk cursor.

Paul Franzen

The Beard in the Mirror (formerly testgame) - Out now on Steam! http://store.steampowered.com/app/385840
Other games I've worked on: http://paulmfranzen.com/games/

SMF spam blocked by CleanTalk