i have sprite "ball" which can duplicate itself in their position
how to set angle for the new duplicate "ball"?
Develop games in your browser. Powerful, performant & highly capable.
i have sprite "ball" which can duplicate itself in their position how to set angle for the new duplicate "ball"?
"ball" have bullet behaviour
Moved to the C3 How Do I... section
akabaru48 generally when asking for help, the How Do I section is the best place to post.
Two options. First, you can use a family Balls:
For each Balls : .. Create Ball at (Balls.X, Balls.Y) .. Ball Set angle to ....
The second option is to create a new ball with a function:
For each Ball : .. Call function NewBall(Ball.x, Ball.y) On Function NewBall (parameters: x, y) .. Create Ball at (x, y) .. Ball Set angle to ....