RMMV Shift Balloon Icons?

Status
Not open for further replies.

Mooshry

BTS has consumed my very existence help.
Veteran
Joined
May 30, 2016
Messages
395
Reaction score
145
First Language
English
Primarily Uses
RMMV
So in my game, the balloon icons are diagonal like in scribblenauts instead of the default straight down. The problem is, since the balloon icons are usually supposed to point down, it looks weird when they show up directly above the npc instead of to their upper right.

Now you may ask, why am i not just using events? If i use events, it's impractical, will take a lot longer, and won't look the same. Anyway, i need a plugin that lets me shift the balloon icons along the X and Y coordinates. No plugin commands, no notetags, just something to let me move the balloon icons. I hope this actually gets made!
 

??????

Diabolical Codemaster
Veteran
Joined
May 11, 2012
Messages
6,501
Reaction score
3,184
First Language
Binary
Primarily Uses
RMMZ
LOL I read your post title without the 'f' and I was like, "yea, the default ones kinda are a bit arent they"... :D

edit: make a new plugin.js file, call it whatever, and then add whichever relevant code (either the mv or mz). you can edit the 'offset' const values to whatever.
Code:
// for mv:
Sprite_Character.prototype.updateBalloon = function() {
    this.setupBalloon();
    if (this._balloonSprite) {
        const offset = {x: 24, y:0}
        this._balloonSprite.x = this.x + offset.x;
        this._balloonSprite.y = this.y - this.height + offset.y;
        if (!this._balloonSprite.isPlaying()) {
            this.endBalloon();
        }
    }
};
// for mz:
Sprite_Balloon.prototype.updatePosition = function() {
    const offset = {x: 24, y:0}
    this.x = this._target.x + offset.x;
    this.y = this._target.y - this._target.height + offset.y;
};
Have fun :*
 
Last edited:

Eliaquim

Hakuen Studio
Veteran
Joined
May 22, 2018
Messages
1,676
Reaction score
1,086
First Language
Portuguese - Br
Primarily Uses
RMMV
Hi!
I also have something to MV, but it needs the use of plugin commands or note tags or events comments... But also you can use the file name of the characters...
Eli_BalloonPositions.js
 

Mooshry

BTS has consumed my very existence help.
Veteran
Joined
May 30, 2016
Messages
395
Reaction score
145
First Language
English
Primarily Uses
RMMV
What are the coordinates i should use to put it to the event's upper right?

EDIT: Never mind, i figured it out.
 
Last edited:

bgillisp

Global Moderators
Global Mod
Joined
Jul 2, 2014
Messages
13,514
Reaction score
14,244
First Language
English
Primarily Uses
RMVXA

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.

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

Finished that egg-sitting mini-game I mentioned here a couple weeks back. Now to fix the weather system so it doesn't rain indoors while you're playing it. >.> A simple fix in itself; leave it to me to take it as an excuse to completely revamp the time/weather/lighting system from scratch.
I'm really tempting to pre order cyberpunk 2077... should I do it or not :/ I really want to play the game but don't want to take a big hit to my saving because of it
So I need to come up with quite a few action sequences.
Was stressing about this plugin earlier, but pretty happy with how its looking now! Purple makes it pop more too!! :)

Forum statistics

Threads
105,485
Messages
1,014,082
Members
137,133
Latest member
Stuart18
Top