Portrait drops continuously when clicked quickly
Describe the bug When clicking on any creature, that isn't the current active one, the portrait from drops to show it was clicked. If it is clicked multiple times quickly the portrait drops far down the page.
To Reproduce Steps to reproduce the behavior:
- Start Game
- Click on any creature you aren't currently controlling
Expected behavior The portrait should not redo the animation when clicked more than once. It should finish the animation before allowing it to happen again.
Hey there! Thanks for helping out this project! You can also report issues in our dedicated Discord server channel https://discord.gg/wCjF9cM
This is as intended, as a lot of new players are very autistic about things, so they need to be exaggerated as they insist. Many new players expect that clicking on a unit will actually select it, fully disregarding the unit queue and such. Anyway, you opening this issue sparked some new ideas that might change behavior for this in the long run.
Hey Dreadknight, I'd like to try out some different indications for this character portrait. Could you help point me to location in the code that this takes place. I am new to working with project and haven't been able to locate where this interaction is taking place.
Thank you
Hey Dreadknight, I'd like to try out some different indications for this character portrait. Could you help point me to location in the code that this takes place. I am new to working with project and haven't been able to locate where this interaction is taking place.
Thank you
Heya! Yeah, this could be approached in different ways for sure. At very least it would be nice to see some options in practice.
The code should be located in this file https://github.com/FreezingMoon/AncientBeast/blob/master/src/ui/interface.js.
The stuff at the top showcasing order of units (based on rounds and initiative stat) is called unit queue, to help you narrow down the search a bit.
Hey Dreadknight, rcoker6 and I changed the interaction of the portrait to give it more emphasis and make it catch the eye. Let us know your thoughts on the change. A known issue is that if you click too continuously the portrait will go above the screen. We will try to work this out later.
Hey Dreadknight, rcoker6 and I changed the interaction of the portrait to give it more emphasis and make it catch the eye. Let us know your thoughts on the change. A known issue is that if you click too continuously the portrait will go above the screen. We will try to work this out later.
Understood. Will review this pretty soon :-)
Hi @DreadKnight, after talking things over with my group of @GrantsGithub @Montrel-code and @rcoker6. We came up with a fix to make the portrait bounce 3 times with each bounce being a little less than the last as suggested. If click spammed repeatedly it will go to the bottom of the screen and then reset to its normal position. Let me know what you think, thanks!
@pamons12 @GrantsGithub @Montrel-code @rcoker6 I've reviewed it and merged. Thanks for the contribution guys, don't forget to ⭐ the project and hopefully will see some more fixes soon, especially for stuff from the next milestone, which are priority https://github.com/FreezingMoon/AncientBeast/milestone/4 - maybe @CKillen will want to poke at some once again as well :)