I'm looking for a way to control where the object (and/or character) is controlled from.
It's 'control point'.
I think right now all objects (and characters) are controlled from the bottom right pixel. Right?
I'm wondering if there's a way to set that control point manually.
If not, I'd like to make that a suggestion.
Something like this:
(http://www.twin-design.com/random/controlpoint.gif)
It could work like the baseline feature where you just click where you want the control point, or it could just be a drop down with options:
Bottom Left, Bottom Right, Top Left, Top Right, Top Center, Bottom Center, Left Center, Right Center, Middle Center
This would give a little more flexibility to animating (moving) objects and characters (especially the NPCs). The characters control point would be in the characters editor (Maybe under the Blinking View button).
If this is already possible with scripting I can do it that way too! I just couldn't find it in the help or by searching around the forums!
Thanks,
])]v[
I could have sworn CJ implemented this in scripting. Any help finding it?
Quote from: Hollister Man on Mon 05/01/2004 23:53:43
I could have sworn CJ implemented this in scripting. Any help finding it?
You probably mean SetCharacterViewEx()/SetCharacterViewOffset() script functions? Though they are not quite the same what Darth are refering to. EDIT: on the other hand maybe is it what you are looking for, Darth?
As for character/object hotspots they are as follows:
Character bottom-center
Object bottom-left corner
And no, currently there is no way to change them.
~Cheers
Thanks for the quick replies! I think, for some things, those two options could work.
However ...
The problem that made me think of this option was I was moving an object off the left side of the screen and it kept getting stuck with a little bit on the screen (because the control point was off the screen the rest just stopped [even when I made the move to coordinates WAY off the screen])
The work-around I made was that once it reaches that point just making it disappear but, though it did work, it looked clunky!
I'm too much a perfectionist to allow this ;)
I want selectable control points because if I want to move an object off the left side of the screen it doesn't work (unless I'm just not thinking of something)
So if I wanted to move and object(s) off the left side of the screen I could set the control point to the bottom-right and move it to 0 and it would then completely move off the screen.
Have any of you ever had that problem? If so, how did you work around it?
Thanks!!
])]v[
You see, if you are using MoveCharacter() command it respects the walkable areas of the room, so you can't move a character off the screen with that command (as there no walkable area outside he won't go). What you may find useful is a MoveCharacterDirect() command which ignores walkable areas. You can specify offscreen coordinates and the char will go there without a problem.
If it's a player character you could call that command on player walk off screen edge event.
EDIT: I took a character as example but the same goes to objects: MoveObjectDirect()
~Cheers
Thanks for all your help Scorpiorus!
I think that 'Direct' function should, for now at least :), do what I need!
])]v[