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,513
Reaction score
3,203
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,695
Reaction score
1,113
First Language
Portuguese - Br
Primarily Uses
RMMZ
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,522
Reaction score
14,255
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

Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??

Forum statistics

Threads
105,860
Messages
1,017,040
Members
137,569
Latest member
Shtelsky
Top