How do you move an Event? like for a cutscene. When Using Move Routes, for example if I do MOVE DOWN, he won't just move one square. He will move down forever until hes off screen.
That's odd, it isn't a bug I've had (I assume you didn't set the move route to repeat?)
Also, is there any info anywhere about your "helper functions" mentioned. Is there a list, or maybe a help file for Cross Engine, that I havent found?
The beginning of the plugin has a long list of information I thought might be helpful, though I'm not sure how useful it is. The stuff under the ' *** New Event functions:***' tag is probably what you're looking for.
the tLoc you asked about is used like this:
this.tLoc(xCoordinate,yCoordinate,isThisMoveRouteSkippable)
it goes to an absolute map coordinate (so this.tLoc(3,0,true) goes to the top of the map, 3 units away from the upper-left corner, and stops if it hits the wall)
rLoc is the companion
this.rLoc(xCoordinate,yCoordinate,isThisMoveRouteSkippable)
it goes to a RELATIVE map coordinate (so this.rLoc(3,0,true) goes 3 units to the right, and stops if it hits the wall)
They aren't really worldchanging or anything, but it makes things easier to read and less tedious to make.
Here's the helper functions, which should be generically useful by anyone doing altimit. I kept the names short so you could read them when working on a moveroute.
Spoiler
Code:
///////////////////////////////////////////////////////////////////////////////////////
// Character Motion Helper Functions
///////////////////////////////////////////////////////////////////////////////////////
//===============================
//sets target location to coordinates (short so can see in movement route window)
Game_CharacterBase.prototype.tLoc = function(xcoord,ycoord,skippable)
{
this._moveTargetX = xcoord;
this._moveTargetY = ycoord;
this.setDirectionVector(xcoord-this.x,ycoord-this.y); // turn
this._moveTarget = true;
if (skippable==undefined)
{
this._moveTargetSkippable = true;
}else{
this._moveTargetSkippable = skippable;
}
}
//the same, but RELATIVE to your location
// note: doesn't work on looping maps, I never use them.
Game_CharacterBase.prototype.rLoc = function(xcoord,ycoord,skippable)
{
this._moveTargetX = xcoord+this.x;
this._moveTargetY = ycoord+this.y;
this.setDirectionVector(xcoord,ycoord); // turn
this._moveTarget = true;
if (skippable==undefined)
{
this._moveTargetSkippable = true;
}else{
this._moveTargetSkippable = skippable;
}
}