v4.3
Good morning Godot community!
My assignment for this weekend is to add party selection and proper party movement to my RPG project
The way I envision it is similar to a game like FF1, with the player selecting from a pool of classes to fill 4 slots in a party. Whomever is in the first slot will be the ‘leader’, with the player assuming direct control, with the remaining 3 following behind in a diamond formation.
The player needs to be able to ‘swap’ which class is in rank 1 (leader). The script I’m using for the classes (they’re all the same right now) allows for both a ‘leader’ mode (can be controlled by the player), and a ‘follower’ mode (disabled controls, follows an Area2D).
At the moment I’m accomplishing the party formation with a Marker2D, with 3 Area2D as its children. I can manually add this Marker2D as a child to any of my classes, set that class to “leader”, then manually set the follow points for 3 other classes to follow one of the 3 Area2D’s. All classes are (atm) clones of each other and have proper pathfinding, animation, collision and a camera that activates only when they are the “leader”.
So in summation;
- Player selects from a pool of classes to fill 4 party slots.
- Slot #1 is the leader, and is directly controlled.
- Slot 2, 3, 4 follow behind.
- The player can swap which class is in what slot (changing who is leader).
- The formation must rotate with the player (so followers are always behind).
Much appreciate any advice before I get started on what I’m sure will give me a migraine.
(Included is a totally lame diagram that I hope adds some clarity).