Set angle for weapons with variable

Get help using Construct 2

Post » Tue Jan 15, 2013 1:35 pm


Need Help Setting angle for weapons,

I posted this under general but, Im not sure that was the right palce for this.

Ok, here's my scenario. I am creating a "wing commander" style game. The game has a tatctical display target in center screen. I need to be able to create a variable to create a constant towards center point. When the game run on different screen sizes or devices the fixed angle is no longer good and move torpedo fire out of center alignment.

I tried to follow the example in ghost shooter, but cant seem to get it to work. the torpedoes alaways veer off target. Aiming for the point that was center at time of press key to fire. But the player target center point is always moving (through space).

http://www.neoprofessor.com/starfighter/

You can try it here. The torpedos are set at a fixed angle.

I hope Im being clear about what i need to acomplish. The torpedos must hit Target Center Point with angle being calcualted updated every tick. The example in Ghost Shooter uses a varible. Really could use some help here.


Thanks
Image
B
71
S
22
G
2
Posts: 671
Reputation: 8,522

Return to How do I....?

Who is online

Users browsing this forum: No registered users and 19 guests