ArnoSaxena / chococraft

minecraft mod, adding chocobos
Other
11 stars 15 forks source link

Chocobo's Sprint/Speed Changes #11

Closed LeonBlade closed 11 years ago

LeonBlade commented 12 years ago

Chocobos currently go way too fast, adding a sprint feature can help this. They also run way too fast on the water, friction needs to be added to slow them down while walking on the water.

LeonBlade commented 12 years ago

4e5548d49ab614a96f60123b20ee07f58c11b9ad Speed in water has been significantly decreased.

LeonBlade commented 12 years ago

@ArnoSaxena

in addition, following pack Chocobos should increase the walking speed to match the player (only in range of their colour abilities). Right now riding a Chocobo is much faster than the pack animals will follow. Maybe even add pack animals can fly on their own when following a player mounted on a flying Chocobo.

LeonBlade commented 12 years ago

@ArnoSaxena Yeah, I think they should be able to keep up. I think we can also do something fun and have them follow in a caterpillar style like in Final Fantasy VIII where they follow each other instead of fighting over being right directly behind.

Maybe we can implement a system where every Chocobo will have their following state, and there will be a "followed by" Chocobo that is either set to a Chocobo or is null, and if it's null then the Chocobo that is checking will be set as the followed. Then, any Chocobos that try to follow the player will have to go down a tree of followed by and follow their following entity instead of just the player, then once one break the chain will have to reform.

Do you like this idea?

ArnoSaxena commented 12 years ago

like it :D

LeonBlade commented 12 years ago

There is something wrong with movement speeds... Chocobos can now move at their full speed with the changes I've been making, yet they STILL can't keep up if you're riding a Chocobo of the same type. For example, I have Purple Chocobos, they can follow me fast enough to catch up if I'm running and jumping to go as fast as I can without extra stuff.

But, if I'm riding a Purple and having a Purple follow me... it can't keep up. This is obviously a serious problem, the player's velocity must be adding to the Chocobo's velocity to make it go even faster than it's supposed to...

Not even on a Yellow Chocobo can a purple at top speed keep up with me...

ArnoSaxena commented 12 years ago

I have (by chance :D) somehow increased the speed of following Chocobos. I have cleaned up the EntityAnimalChoco class by removing all methods found in exactly the same shape in the parent classes. And I have streamlined updateWanderPath and findPlayerToAttack. Now I would have thought the outcome should be indistinguishable from the original code ... but... anything works fine, that's the good message and the next message is a very good one :D the only difference I can experience is an increase in Chocobos following speed. I even have the impression purple an yellow Chocos have a different speed now ... I'll do some more testing this evening and then check in the cleaned up EntityAnimalChoco.