How can I let a ball be attracted by a magnetic field? For example the bullet goes from left to right but if its in the magnet field the bullet go a litte bit up. You know what i mean?
Develop games in your browser. Powerful, performant & highly capable.
Set the magnetic field as an sprite, and every time the bullet is overlapping said sprite you move it in whatever direction you thing it should go