i am creating a rolling ball game where it keel rolling until it not hit with wall. i want to keep ball rolling with one time swipe or one time press button and not accept any movement until it not stop or hit with ball. i want to enable or disable the input to ball. disable input when ball in motion/rolling and enable if ball stop.
Disable input when ball in motion/rolling and enable if ball stop unreal engine
I don’t know what your roll logic is but after you’ve pressed the buton or swiped you can disable input and enable it when the velocity is 0.
I misunderstood then. You can add tags to your wall actors. When a ball hits something check if that actor has the tag you added and if it does then disable input.
i am creating game like . where ball has to keep moving and stop after hit with wall and not accepting any movement until it not stop.