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
492
Reaction score
1,199
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,932
Reaction score
3,134
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
492
Reaction score
1,199
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,687
Reaction score
9,240
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 Posts

Latest Profile Posts

Only 3 more days to get your copy of Move That Box! with -15% discount!
1660090657213.png
Mistakes will be made.
After three years, it was awesome to be back at Gen Con!
Words of Wisdom: You can be honest and alone. Or dishonest and together.
Working on mapping using RPGTools to create parallax maps using PVgames tiles/assets. It's super cool... but mapping is still something I drag my feet on getting done. I hate this but love the math parts of design, which is the opposite of a lot of dev's around, I think. It really do be different strokes for different folks.

Forum statistics

Threads
124,380
Messages
1,163,222
Members
163,179
Latest member
LeuzyGamer
Top