Move walkto point from feet to center. SOLVED!

Started by monkey0506, Sun 18/07/2004 14:42:00

Previous topic - Next topic

monkey0506

I have noticed that when I set my cursor hotspot, the bottom of the character's feet go to the cursor hotspot. I need to make it to where it centers the character at the center of the cursor. Like in MI1/MI2. I have searched the help files and the forums, but can't find how to do this. Thanks ahead of time!

Snarky

Tip: Your subject is a bit vague. You might get more help if you called it something like "Move walk-to point from feet to center".

There was a thread about something similar. What you want seems simpler, though. Could you not just intercept walk-to commands and add charHeight/2 to the y-value?

monkey0506

Sorry. I couldn't think what to call it. I nearly posted something along the lines of my being a total n00b and having no idea what you're talking about... But then I got it figured out. Thanks! Here's the script (in on_mouse_click):

Code: ags

      if (GetCursorMode()==MODE_WALK){
        MoveCharacter(GUYBRUSH, mouse.x, mouse.y+29);
        }


I looked at it and decided to move him a few more pixels... I put this right beneath the ProcessClick that was already there and it worked great!

Snarky


SMF spam blocked by CleanTalk