RMMV How to Get Actor's To Start Off Screen In Battle...

Status
Not open for further replies.

zerobeat032

Oh, it's that Zerobeat kid...
Veteran
Joined
Mar 28, 2014
Messages
469
Reaction score
1,139
First Language
English
Primarily Uses
RMMV
Not sure if this goes here or MV Support, but I was curious is there a way to get actors to start completely off screen. I have custom sprites of every actor running to their starting spot and it looks odd if they're coming in from partly on the screen already. I mostly need this because I have a system where if an actor is knocked out, the other battle member replaces them. But the actor coming in isn't starting off screen so it looks weird with them running in that way.

I saw this...

Sprite_Actor.prototype.startEntryMotion = function() {
if (this._actor && this._actor.canMove()) {
this.startMotion('walk');
this.startMove(0, 0, 30);

within rpg_sprites... this seems to control how an actor enters the battle, but not necessarily where. I think the numbers are X, Y, and the amount of frames it takes for the move. but I'm not entirely sure. correct me if I'm wrong.

but yeah, I was wondering how do I get them to start entirely off screen and go to their starting position.


EDIT: I should've kept looking before I posted this. I was RIGHT there with figuring this one out. so Yanfly's BattleCore Engine has the same thing in it and I changed it to this... this.startMove(700, 0, 0); and the character's come in from completely off screen now. I'll close this lol.
 
Last edited:

ATT_Turan

Forewarner of the Black Wind
Veteran
Joined
Jul 2, 2014
Messages
4,512
Reaction score
2,878
First Language
English
Primarily Uses
RMMV
I think the numbers are X, Y, and the amount of frames it takes for the move. but I'm not entirely sure.
That wouldn't track, because 0,0 is the upper left corner of the screen, and we definitely don't see anyone running in from there. It's saying how far they're supposed to be moving in the X and Y.

Maybe I'm misunderstanding you, or maybe you have plugins working that change defaults, but when I start a battle I already see the actors running in from off-screen. Have you changed your resolution or the home positions for the actors?
 

zerobeat032

Oh, it's that Zerobeat kid...
Veteran
Joined
Mar 28, 2014
Messages
469
Reaction score
1,139
First Language
English
Primarily Uses
RMMV
yeah I realized plugin's changed my default and that the I needed to just increase the X in Yanfly's Battle Core Engine. I changed that to (700, 0, 0) and the character's come in from off screen now. Tho, I'm realizing they're supposed to do that from the jump aren't they. I've had edits so long I can't actually remember where the player is supposed to start on screen.
 

mlogan

Global Moderators
Global Mod
Joined
Mar 18, 2012
Messages
16,621
Reaction score
9,217
First Language
English
Primarily Uses
RMMV

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

 
Status
Not open for further replies.

Latest Threads

Latest Profile Posts

I'm going to be adding in combat animations, revamping the UI and putting in a new cutscene this week, so this is your last chance to play the MC:RIS demo in its original form! Say you were there since the beginning! https://qos.itch.io/infinite-sadness
I added reflections and shadows. Though one of the party seems to have no reflection, is floating, with glowing eyes. I'm sure it's fine.
p7O1sjG.png
Well. *That* was an entertaining fustercluck — and that’s not meant nearly as sarcastically as it sounds. I just had to make four different versions of the same conversation:
1: Attained MacGuffin.
2: Have not attained MacGuffin, but know its location.
3: Do not know MacGuffin’s location, but have a good idea where to find it.
4: Do not know where to look for MacGuffin.
Yep, feels good to be back. ^.^
I'm soooooooooo tired TT___TT why can't there be a plugin to let me sleep + work simultaneously ... !!
Mixing different pixi filters over a picture. :MV3:

Forum statistics

Threads
123,110
Messages
1,154,049
Members
161,442
Latest member
pestilence
Top