Showing Whole Party on map...

Status
Not open for further replies.

Bastrophian

The Pixel Heartist!
Veteran
Joined
Oct 26, 2013
Messages
3,830
Reaction score
2,070
First Language
English
Primarily Uses
Other
Ok, in the scene im trying to create, the guy in the middle of the pic will telaport onto the map where he is. Then i want to make the part members spread out around him, left, right, and down like they are in the pic....is there any way to do this without separate events for each character? Anyway, sorry if this is comfusing.    

 formation.png
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
<<someone>> has a script that will let you control the party followers. I just don't recall who the scripter is or what the name of the script is (I'd almost bet it has "followers" in the title though).


Maybe search through the master script list for the word followers?
 

Bastrophian

The Pixel Heartist!
Veteran
Joined
Oct 26, 2013
Messages
3,830
Reaction score
2,070
First Language
English
Primarily Uses
Other
<<someone>> has a script that will let you control the party followers. I just don't recall who the scripter is or what the name of the script is (I'd almost bet it has "followers" in the title though).

Maybe search through the master script list for the word followers?
Thank you shaz, i have found a few scripts that look promising. I wasint looking for scripts because i was almost sure you could do it in the engine already....but guess not. Anyway, thanks again.  
 

Engr. Adiktuzmiko

Chemical Engineer, Game Developer, Using BlinkBoy'
Veteran
Joined
May 15, 2012
Messages
14,682
Reaction score
3,003
First Language
Tagalog
Primarily Uses
RMVXA
It's either using a separate event for each of them for the graphics and control or use scripts to control followers...

you could do it in the engine already
You could, using the events method
 
Last edited by a moderator:

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
Yep. There are no default commands that let you move followers around. So you've either got to turn off followers and use events, or use a script that lets you control followers.


You COULD do it with a Script event call to set up a move route with the followers as the target, but that's quite complicated and probably too lengthy for the script event command.
 

Heretic86

Veteran
Veteran
Joined
Nov 30, 2014
Messages
240
Reaction score
167
First Language
Engrish
Primarily Uses
Why not just use .moveto(x, y)?

I dont have a copy of VXA so Im not sure how to get access to the Follower Objects but it would most likely be the same as any other Event.

Event Script:

for follower in $game_party.followers

  follower.move_to(12 , 26) if follower.id ==1

  follower.move_to(13 , 27) if follower.id ==2

  follower.move_to(14 , 26) if follower.id ==3

end

Something to that effect should work if Followers use the same directional movement commands as Players and Events.
 

Engr. Adiktuzmiko

Chemical Engineer, Game Developer, Using BlinkBoy'
Veteran
Joined
May 15, 2012
Messages
14,682
Reaction score
3,003
First Language
Tagalog
Primarily Uses
RMVXA
maybe, but if the player moves after that, the followers will still follow him right?
 

Heretic86

Veteran
Veteran
Joined
Nov 30, 2014
Messages
240
Reaction score
167
First Language
Engrish
Primarily Uses
They probably wont move correctly after positioning, but the solution to that could also be similar to the initial positioning problem to begin with.  That little Event Script above would position each Follower based on position in the "Caterpillar".  Thus, since map position corresponds with Follower ID, another solution could be another Event Script

(After the Cutscene)

for follower in $game_party.followers

  follower.move_right if follower.id == 1

  follower.move_up if follower.id == 2

  follower.move_left if follower.id == 3

end

Again, I dont have VXA so I have no clue how their follower system works so this code is probably not going to reference each Follower as an individual Object correctly.  Once Follower Object paths are determined, sorting may or may not be needed.  If followers are stored in an Array, then probably not, but if stored in a Hash, then sort will probably be needed.

Alternatively, we could entirely skip the Move commands.  I worked on a Caterpillar system (similar to Followers) where a script call would move all the Caterpillar Actors (Party Members) to the location of the player.  The script call was simply "cat_to_player".  That script call wont work in VXA.  Im not sure if VXA has anything similar to move each Follower to the location of the Player. 

Another alternative would be to simply set the X and Y coordinates to that of the Player.  This would allow movement to the Players location to animate.

for follower in $game_party.followers

  follower.x = $game_player.x

  follower.y = $game_player.y

end

A third alternative would be to "Teleport" the player back to a gathered position.  The drawback here is that there wouldnt be any animation so one would probably just fade to black while Teleportation occurs.  Basically, fade to black, teleport the Player to their current location, then fade back in.  This will most likely automatically reposition the Followers to the location of the Player.

Last alternative would be to write a script that creates some new movement commands for the Followers.

class Game_Interpreter

  def collect_followers

    for follower in $game_party.followers

      follower.x = $game_player.x

      follower.y = $game_player.y

      follower.direction = $game_player.direction

    end

  end

  def scatter_followers

    for i in 0...$game_party.followers.size + 1

      j = i

      # Turn until facing a Scattered Position

      while j > 0

        follower.turn_left_90

      end

      follower.move_forward

      follower.direction = $game_player.direction

  end

end

Then, in an Event Script, just call either "collect_followers" or "scatter_followers".  This should hopefully allow for both Animations of "Collecting" or "Scattering" where each Follower would face the same direction as the player does once the animation completes.  Scatter would require that Collect be called, and wait several frames for everyone to get on their marks.

To Collect:

@>Script: collect_followers

To Scatter:

@>Script: collect_followers

@>Wait: 30 Frames

@>Script: scatter_followers
 

Brigg

Veteran
Veteran
Joined
Apr 22, 2015
Messages
129
Reaction score
4
First Language
English
Primarily Uses
I've been trying to do something like this as well. Your best bet is to use what @Heretic86 was suggesting, which in RMVXA is Gather Followers in tab 2 under Character in the Event Commands.

From there, have Set Event Location place the amount of events equal to your followers. Then you can turn them on by changing their Graphic to each of your followers and then turn off Change Player Followers.

Once your sequence is over, you can turn the events off with a Control Self Switch and then turn back on Change Player Followers.
 

Kes

Veteran
Veteran
Joined
Aug 3, 2012
Messages
22,299
Reaction score
11,712
First Language
English
Primarily Uses
RMVXA
@Brigg

Heretic86 was suggesting something other than that.
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
Brigg, please refrain from necro-posting in a thread. Necro-posting is posting in a thread that has not had posting activity in over 30 days. You can review our forum rules here. 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

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'??
Yay, now back in action Happy Christmas time, coming back!






Back in action to develop the indie game that has been long overdue... Final Fallacy. A game that keeps on giving! The development never ends as the developer thinks to be the smart cookie by coming back and beginning by saying... "Oh bother, this indie game has been long overdue..." How could one resist such? No-one c

Forum statistics

Threads
105,857
Messages
1,017,018
Members
137,563
Latest member
MinyakaAeon
Top