Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

How do you make a enemy bullet like the player bullet?

I followed two different videos for making bullets. The video for the players bullet was from Brackys Top Down Shooter tutorial. The tutorial for the enemy bullet was from BlackThornProd. Even though I have a little bit of experience with code, I really know next to nothing about it. So, I wanted to make the enemy bullet like the player bullet. That way the player doesn't get distracted and doesn't block the screen. But, I don't know how to change the code to make it fit. I suspect that I would need to use transform.up, but I have no idea were to put it.

I also know that I would have to change this part of the code in order to get my result:

transform.position = Vector2.MoveTowards(transform.position, target, speed * Time.deltaTime);

And I have no idea on how to change that. Especially since BlackThornProd and Brackys used there scripts so differently. I have no idea how to solve this.

pls help

Sign In or Register to comment.