Nice video, but I have a suggestion regarding the ConcurrentModificationException. Instead of using an ArrayList and putting the code in a synchronized block, we can use CopyOnWriteArrayList. This will eliminate the need for synchronization.
I think there's a bug in the multitouch code. If you hold the attack/menu button first and the touch the joystick, the player will move toward the direction of the first touched button.
I think I'm having a similar bug. Whenever I hold the attack or menu button, use the joystick, then release the attack or menu button, I move straight up until I hold the attack or menu button again-- when I hold the attack or menu button, the joystick acts normally. The problem seems to persist until I let go of the joystick-- after this, the joystick, attack, and menu buttons seem to act as expected. Does anyone know what's causing this bug? Thanks in advance!
Hey all!
Hope you are having a great day!
We are finally adding Multi Touch!
Enjoy! :D
New subscriber here. Really looking forward to this series. Thank you very much sir.
Nice video, but I have a suggestion regarding the ConcurrentModificationException. Instead of using an ArrayList and putting the code in a synchronized block, we can use CopyOnWriteArrayList. This will eliminate the need for synchronization.
I think there's a bug in the multitouch code. If you hold the attack/menu button first and the touch the joystick, the player will move toward the direction of the first touched button.
I think I'm having a similar bug. Whenever I hold the attack or menu button, use the joystick, then release the attack or menu button, I move straight up until I hold the attack or menu button again-- when I hold the attack or menu button, the joystick acts normally. The problem seems to persist until I let go of the joystick-- after this, the joystick, attack, and menu buttons seem to act as expected. Does anyone know what's causing this bug? Thanks in advance!
@@allmath1172 I have solved the problem. It's because of how the Android multitouch system is implemented, it's quite confusing.