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

Status
Not open for further replies.

zerobeat032

Something, Something Zerobeat...
Veteran
Joined
Mar 28, 2014
Messages
548
Reaction score
1,529
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
7,579
Reaction score
5,339
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

Something, Something Zerobeat...
Veteran
Joined
Mar 28, 2014
Messages
548
Reaction score
1,529
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,742
Reaction score
9,291
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 tried a new thing.

fg.png
Another night, another game dev stream in about 20 minutes or so.

I've been busy. Warming up so I don't forget how to draw.
Fr4yy7TaEAUB57Z
I'd make a joke about the post office, but I'm afraid you won't get it.
I've been on a really good streak lately of working on my game for at least a little bit each day. Even if I only complete one small task, it is still a much better pace than what I was maintaining previously!

Forum statistics

Threads
129,783
Messages
1,205,118
Members
170,890
Latest member
Kushiri
Top