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,500
Reaction score
3,178
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,673
Reaction score
1,084
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,512
Reaction score
14,241
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

I've signed up for a job training program for people with Asperger's Syndrome. I went to a "test run" today so they could see how well I did with simple jobs, and I amazed them. Most new people do it in 30+ minutes, while I finished in a mere 15 minutes. Gives me time to work on a screenplay for Studio MDHR...
People,I have seen that Someone from China/Chile and London is doing a Vaccine Against COVID-19.
Doing anything that yield good result in the long run is like sowing seeds. With proper care, they will grow and bear fruits. I'm excited for tomorrow. :D
Leokids wrote on DarkPlasmaBall's profile.
Hi
People1_3,People1_4,SF_People1_3,SF_People1_4 added!

Forum statistics

Threads
105,448
Messages
1,013,805
Members
137,102
Latest member
Mitchs98
Top