Please someone help me i asked this question many times but no one would answer me. I have a 2d top down game and a 2d top down sprite that will be my enemy. i want to make it so it can randomly shoot out bullets downwards, and people tell me the best way to do it is doing sockets. also now people say sockets cannot be used in a 2d sprite and i cannot find them anyway. what can i do? can i not make my enemy shoot?
Hello GitGudGitRekt,
From the image that you are showing it appears as though you have created a sprite as well as an PaperSpriteActor. You will need to open your sprite and there you will be able to add a socket. I have provide an example below. Please keep in mind this is just an example that is to get you pointed in the correct direction. I hope that this information helps.
Example:
In the image below I have opened up my sprite and I have added a socket to it. After this I named the socket NewSocket. I left it is the center for this example. If you would like to move it you can do so by using the local transform drop down that is available is the sockets section.
Here I have opened my PaperSpriteActor and I have gotten a reference to my sprite component and I have used “Get Socket location” to draw a sphere at the location of the socket (The middle of my sprite)
Make it a great day