Spawning on screen
I am working on my first mobile project and am getting hung up on a cannon ball setup I am attempting to code. What I am trying to do is have an actor "cannon" shoot another actor "cannon ball" horizontally once the actor "player" is on screen. The problem I have now is cannon balls flying all over the place instead of spawning when player comes on screen. Anyone help?