How would I incorporate the swiping up effect tho for if I wanted the player to have to swipe up with their finger on the object/sprite in order to shoot him upwards? And how could I make it look like the cups are behind the player sprite but also further in the distance compared to the player sprite? I am trying to achieve the paper toss boss ios game effect to make it like that game.
Detect the touch of the player... for the swipe
1-create 4 variables on the player a,b,c,d
2-on start of touch set 2 of the variables (a, b) to the x and y of the touch
3-on end of the touch set the 2 other variables (c, d) to the x and y of the touch
4-use these 4 coordinates to create a force vector and 4.1-apply the length of your vector as impulse force to the ball , 4.2 apply the angle of your vector to the angle of your impuls
Steps 2 to 4 should happen in a single tick/event
... about making the cups look like they are in the distance, im not really clear about that ( maybe you need to use parallax or something else), not sure though