Hi, the other day I was thinking "I want to make a 2D shooter" but how would I shoot at angles, I think I have worked it out but just wanted to run it past you guys.
Say I wanted to shoot up and right a small amount I would do y-1 every refresh and add to an array every refresh, once the array = 3 I would do x+1 thus creating a diagonal line or path of a bullet, I think this would work but just to check.
Thanks, Wolfy87.
Say I wanted to shoot up and right a small amount I would do y-1 every refresh and add to an array every refresh, once the array = 3 I would do x+1 thus creating a diagonal line or path of a bullet, I think this would work but just to check.
Thanks, Wolfy87.

Help
Welcome to BleepingComputer, a free community where people like yourself come together to discuss and learn how to use their computers. Using the site is easy and fun. As a guest, you can browse and view the various discussions in the forums, but can not create a new topic or reply to an existing one unless you are logged in. Other benefits of registering an account are subscribing to topics and forums, creating a blog, and having no ads shown anywhere on the site.




Back to top









