To make follower through on

jakr8911

Veteran
Veteran
Joined
Feb 18, 2017
Messages
34
Reaction score
1
First Language
english
Primarily Uses
Other
Hey i'm in a pickle here, i want to make my follower through so when enemy chase me, they dont get block by my follower, i already have 2 yanfly plugin the first one is event chase, the second one is encounteraid, in encounter aid already have follower trigger an event, but when combine it with event chase, it didn't work. So my solution is to make my follower through so event can chase player without getting block by the other parry member.

Can I do that?

Edit:
The enemy does trigger when the follower get touch but now i have a new problem, the enemy only chase the player. So my solution still stand, i want to make the follower through on
 
Last edited:

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
Game Followers are through on by default.

Code:
Game_Follower.prototype.initialize = function(memberIndex) {
    Game_Character.prototype.initialize.call(this);
    this._memberIndex = memberIndex;
    this.setTransparent($dataSystem.optTransparent);
    this.setThrough(true);  // <<<<<<<<<<<<<<< this here
};
You, the player, need to be able to walk through followers - otherwise you could end up going down a narrow passage and being blocked in a dead end by them.

Perhaps what you want is for events to be able to go through followers, as by default they can't.

Code:
Game_Player.prototype.isCollided = function(x, y) {
    if (this.isThrough()) {
        return false;
    } else {
        return this.pos(x, y) || this._followers.isSomeoneCollided(x, y); // <<<<<<<<<<<<< this will stop an event going through followers
    }
};

Try putting this into a new plugin (give it any name, but it needs a .js extension, and to be saved to your plugins folder). Then add it using the plugin manager:

Code:
Game_Player.prototype.isCollided = function(x, y) {
    if (this.isThrough()) {
        return false;
    } else {
        return this.pos(x, y);
    }
};
See if it works, but I expect it will allow ALL events to go through followers, not just those that are meant to be chasing the player.
 

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,038
Members
137,568
Latest member
invidious
Top