I want to make a fan so the ball in my game can get blown towards the goal.
Put a hidden sprite in from of the fan that covers the area that can affect the ball. If the ball is in collision with the hidden sprite, add a force to the ball. You’ll be best off storing the force vector in an object variable on the hidden sprite.
Yeah, I’m doing almost exactly what @MrMen is describing in my new game:
Here’s the implementing code:
My Wind object is a tiled sprite as well and I move the texture around to give the “blowing” effect.
The Wind object has two instance variables for “strength” and “angle”… but often I just leave the angle at 0 and rotate in the scene designer.