Posted June 27, 2020 by samuelbromley
#transfer system
I have been very ill for the past few weeks, so progress has been slow. I don’t want to sound like a typical indie dev, but the day job, and being ill are not great for game progression :)
Anyway, during that time, I managed to spend a little time making a transfer system, so that players can be traded between teams.
This proved to be a NIGHTMARE, as my poorly brain (cluster migraines) could not work out how to pull and push things to certain arrays.
Typically, after attempting to make it work on the first day that I had no migraine, I got it working with hours. I probably worked for a total of 20+ hours to get this work. This is by far the longest time I have spent on anything dev-related! It has been a real pain, but also joyful when it was complete.
There is a confirm transfer screen so that a player doesn’t feel that they have made a mistake. Any transfer that happens is a 2-stage process, making the transferring of a player much more enjoyable and the feeling of control is apparent.
I have also added jersey overlays because player images were hard-coded before, meaning that a transferred player would still be wearing his old team’s jersey! DOH!