My Player Indeed shoots towards it’s Direction… But I need to move my player at the beginning in order to shoot the correct angle.
If I don’t move the player when the scene starts… the bullet goes right, even if shoots many times all bullets go to right… when the player moves the bullet direction works right.
What does the code needs in order to make it works even if the player hasn’t move jet??
Fire Bullet from Player1, at position Player1.PointX(“Origin”);Player1.PointY(“Origin”); toward angle Player1.TopDownMovement::Angle() and speed 100 px/s
The issue will be that the player starts off with no rotation, or an angle of 0, which is directly to the right of the screen. They haven’t moved yet, so TopDownMovement has not changed the player’s angle or position.
What angle does the player face when they start? Are there any events that changes this?
If you have a fade in sequence (so a black sprite covering the whole screen that tweens opacity to 0), then you can move the player at the start and it’ll never get noticed.
Yeah Sounds good… but that’s in case I am moving the player… But for example if another player is playing and the Fade completes and he doesn’t move and shoots… he will see it like a bug…
Is there a way to move the player “Auto” at the beginning?
Like:
(Trigger once)When Scene Starts move player to 100px to 101px ???