Tilemap and touch input

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By wbgyor

Basically, in the scene I have a ball which spawns in the direction of screen swipe . The ball can collided with the tilemap in the scene. Everything works fine (ball spawning and collision) unless I touch (mouseclick) the tilemap.
After touching the tilemap once , whenever the ball is spawned again , it disappears on collision with tilemap. This problem persists on all subsequent balls spawned.

Then… post your code or an example project?

njamster | 2020-08-01 18:14

Figured out a way to manage the problem. Prevented the ball from being spawned if the initial and final positions of the input are same. And then the problem never occured !.

wbgyor | 2020-08-01 18:32