Need Help Setting angle for weapons

Discussion and feedback on Construct 2

Post » Mon Jan 14, 2013 10:06 pm


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

Post » Mon Jan 14, 2013 10:26 pm

Hi, Sorry I don't know the answer to your problem.

However I just wanted to say that the games looks very cool!

Good job so far....
If it can be done, someone on the web will show you how to do it!

CDASI Games Mentality Break Splat-a-bug FlapFleet Challenge
B
28
S
9
G
5
Posts: 304
Reputation: 5,588

Post » Mon Jan 14, 2013 11:03 pm

Thanks, I appreciate that.
Image
B
71
S
22
G
2
Posts: 671
Reputation: 8,522


Return to Construct 2 General

Who is online

Users browsing this forum: pablo7 and 11 guests