Make a specific follower face a specific direction

Status
Not open for further replies.

Kes

Veteran
Veteran
Joined
Aug 3, 2012
Messages
22,299
Reaction score
11,712
First Language
English
Primarily Uses
RMVXA
I know how to make all followers face in one direction, using the script call
$game_player.followers.each {|follower|follower.set_direction(x)}

where x is 2, 4, 6 or 8 depending on which direction I want.

However, I want to make one specific follower (follower 4) face a different direction to the others. I've tried tinkering with the above script call, but nothing I've tried works.

Could someone please tell me what that script call should be?

Thanks.
 

dsiver144

Peaceful Days Dev
Veteran
Joined
Sep 19, 2013
Messages
263
Reaction score
826
First Language
Vietnamese
Primarily Uses
RMVXA
Did you try $game_player.followers[4].set_direction(x) ?
I am not sure I haven't test it before. xD
 

Trihan

Speedy Scripter
Veteran
Joined
Apr 12, 2012
Messages
2,604
Reaction score
1,959
First Language
English
Primarily Uses
RMMV
You'd have to use index 0 for the first follower, 1 for the second and 2 for the third.
 

Kes

Veteran
Veteran
Joined
Aug 3, 2012
Messages
22,299
Reaction score
11,712
First Language
English
Primarily Uses
RMVXA
@dsiver144 That worked. I missed the post from Trihan at first, so when I tried it nothing happened. But once I adjusted for his point (i.e. the follower I wanted had to be 2) then everything worked fine.

Thanks to you both.
 
Last edited:

Trihan

Speedy Scripter
Veteran
Joined
Apr 12, 2012
Messages
2,604
Reaction score
1,959
First Language
English
Primarily Uses
RMMV
Kes, followers are indexed from 0-2. 3 won't work.
 
  • Like
Reactions: Kes

Zeriab

Huggins!
Veteran
Joined
Mar 20, 2012
Messages
1,268
Reaction score
1,422
First Language
English
Primarily Uses
RMXP
You have more than 3 followers?
 

Kes

Veteran
Veteran
Joined
Aug 3, 2012
Messages
22,299
Reaction score
11,712
First Language
English
Primarily Uses
RMVXA
@Zeriab I end up with 5 in the active party, so yes, I will have 4 followers. But at the moment there are only 3, as the 5th and 6th actors haven't yet joined.

@Trihan Yes, I discovered that. However, I then saw your post after dsiver144's, changed it to 2 and all went well.

[mod]Closing, as solved.[/mod]
 
Last edited:
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,865
Messages
1,017,059
Members
137,575
Latest member
akekaphol101
Top