hi everyone, i’m a total beginner and would like to add a Shooting ability to my player.
just a very basic horizontal Shoot like on old platform games.
can some one please explain the process in a very simple step by step way so even a total beginner can understand?
i would like to know:
how to create a shot and controll the speed and distance of it
and also how to make it hit and destroy the enemy.
i’m using Gdevelop 5.
thanks a lot I really appreciate the help!.
Thank you that was very helpful!
but i still can’t work out a few things:
the bullet dosn’t disappear after it traveled a while, it just goes on forever, how can i make it soot just a short distance and then disappear?
when I face left, the bullet still travels to the right only, how do I make it shoot where i’m facing?
is there a way to also have another kind of shot where the bullet is lobed in an arc and is destroyed when it hits the ground?
how can i make the player display my shooting animation slower when i fire?, it shows it way too fast, you can barely see it, is there a way to slow it down so you can see the animation longer?
thank you soo much for your help! sorry for being such a noob
To make the bullet disappear, set a condition to check the X or Y position of the bullet and add an action to delete the object (bullet). Or you can use the Destroy Outside Screen behavior to delete the object outside the scene
Remember to change the direction of the bullet you have to change the angle. In Gdevelop UP is 270°, DOWN is 90°, LEFT is 180°, and RIGHT is 0°. You can increase the firerate with the timer.