
Anyhow, now that it is established that you're always right (at least to the person who counts most) - how about helping out the folks who request solutions in "coding questions"? They can be sure they're getting good solid code and answers.

I would recommend initializing the position and orientation of the bullets as follows:Joakim Christiansen wrote:One little question mp303, how did you make the bullets appear from that relative position?
Code: Select all
bullet\xPos = ship\xPos + cos( ship\angle ) * ship\radius
bullet\yPos = ship\yPos - sin( ship\angle ) * ship\radius
bullet\angle = ship\angle
Code: Select all
bullet\xPos = bullet\xPos + cos( ship\angle -90 ) * gunDist
bullet\yPos = bullet\yPos - sin( ship\angle -90 ) * gunDist
Code: Select all
... cos( ship\angle * Pi / 180 ) ...
what u9 described, is basically what I'm doing.Joakim Christiansen wrote:Thank you u9, but I don't think it will help much in my case.
I have many different images (for different weapons) and for each I have a XY value of where the bullet should be created on the image, but when the image rotates i'm having difficulty calculating where this would be...
I never made that assumption, certain others just assumed that I did.storck wrote:Making the asumption that people are less eperienced programmers just because they use a basic langugage is just plain stupid.
Sounds a little bit like making the asumption that people here are less eperienced programmers. A lot of people here have been programming for years and a fair share have been using different (if not lots of) high-level programming languages as well.Are you going to tell me that this forum is full of programmers with many years of experience with lots of different high-level programming languages? I think you'd be wrong.