We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Hi everyone! I'm trying to recreate the old classic arcade game "Asteroids" in processing, but I'm having a little trouble with the movement. Essentially to move, you rotate from the center so the nose of your ship is pointing where you want to go, then when you hit the up arrow key, it starts to move wherever the nose is pointing. The problem is, I have no idea how to do this. How would you move in the direction the nose is pointing? Could you perhaps make another vertex one pixel in front of the nose and have it move in a direction vector based off of that? Please help me!
Thanks in advance, Anacan
Answers
http://studio.SketchPad.cc/sp/pad/view/ro.9Nl$898UQxW3Q/latest
http://studio.SketchPad.cc/sp/pad/view/ro.9D4K1FIWJ7Kxc/latest
Please start checking if similar posts already exist instead of posting new posts.
continued here:
https://forum.processing.org/two/discussion/19572/how-to-shoot-bullets-depending-on-how-something-is-rotated-in-a-game