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,502
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,678
Reaction score
1,095
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,517
Reaction score
14,246
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 Profile Posts

Once again working on a game I'm not sure I'm going to sell or even publish
That feel when you're awake past midnight and suddenly you're one year older :ninja:
I miss collaborations, but I don't know how to find someone to make face parts just to share them with others, and even though I don't like writing or music, I can't trust anyone with writing on my game because it has themes that are easy to mess up, and music needs a clear tone and scenes.
People donating to me for my upcoming birthday so I can pay my team a little. Such angels, I'm so happy. T uT I smile so much my face hurts. Good souls in this world.
Playing Ragnarok Online again is very nostalgic. The last time I played it was 20 years ago, when I was ten-twelve old.
My first mmorpg.^^

Forum statistics

Threads
105,571
Messages
1,014,723
Members
137,245
Latest member
dashstop
Top