good evening
How do i prevent my ball from going off screen ??? ball is draggable and enemy continously spawn from top…
should i add walls upside? but if i add walls, enemy which spawns will collide with it and wont come downwards…
So any help ?
good evening
How do i prevent my ball from going off screen ??? ball is draggable and enemy continously spawn from top…
should i add walls upside? but if i add walls, enemy which spawns will collide with it and wont come downwards…
So any help ?
The physics engine supports collision filters. You can set it so that only your ball will collide with the wall and not the enemy. See:
https://docs.coronalabs.com/guide/physics/collisionDetection/index.html#collision-filtering
Rob
To better understand collsion-filtering read this https://forums.coronalabs.com/topic/2128-collision-filters-helper-chart/
Hope this help 
Thanks for extra info ! 
The physics engine supports collision filters. You can set it so that only your ball will collide with the wall and not the enemy. See:
https://docs.coronalabs.com/guide/physics/collisionDetection/index.html#collision-filtering
Rob
To better understand collsion-filtering read this https://forums.coronalabs.com/topic/2128-collision-filters-helper-chart/
Hope this help 
Thanks for extra info ! 