Blue and Purple Dots in Room Editor It's come to my attention that I never wrote documentation for the blue and purple dots seen within the room layout editor. So, I'll include an abstract on the topic here (along with a little known trick concerning them).
:arrow: Blue dot: Sprite's floor point handle. Click and drag this point around a room layout to specify where the character will walk to when it approaches the sprite.
:arrow: Pulple dot: Sprite's registration point. This serves two major purposes...
1) The first applies to both Lassie Director and LassieAS: The difference between the sprite's floor point and registration point will determin which way the character faces upon walking up to the object. So, if a sprite's registration point is to the right of it's floor point, the character will turn right to face the object... same applies for facing left.
2) The second function of registration points only applies to LassieAS. In LassieAS, moveToLoc TIMes can be called on any sprite within a room layout. So when a sprite is given a point to move to, it will use its registration point as the anchor it tracks movement with.
:idea: REALLY COOL TRICK: While you're dragging a floor or registration handle (purple or blue dots) within the editor, hold down the Shift key to display the point's current screen coordinates. This works with floor points in the walkable area editor as well.
Karens- 05-30-2007
so I have a sprite to move,, I scritpt:
moveToLoc('birdfly', point(655,111), 10)
moveToLoc('birdfly', point(-22,102), 10)
but the sprite doesn't move, what am I doing wrong?
Karen
bigmac- 05-30-2007
Ummm... any number of things. Lets start with the first major question: what version of Lassie are you using? LassieAS (flash) or Lassie Director? Because what you have there... actually, no, that would be invalid in both. nevermind.
I'm going to assume you're using LassieAS. If not, I'm going to encourage you to switch to it since Lassie Director is being depreciated. Now for your problem...
You're providing a coordinate to the moveToLoc command, which it the wrong type of input. There are three flavors of "moveTo" commands, they are...
moveToLoc... moves to a named walkable grid point
moveToPoint... moves to a screen coordinate
moveToObject... move to an object's floor point
See the lassieAS documentation for proper syntax explanation. It's all spelled out in there. But if you are trying to provide a point, you'll need to use the moveToPoint command.
Forumer™ is Voted #1 Free Forum Hosting provider
Build your own community today with the largest message board hosting company.