Need Help Setting angle for weapons

0 favourites
  • 3 posts
From the Asset Store
Game with complete Source-Code (Construct 3 / .c3p) + HTML5 Exported.
  • 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)

    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

  • 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.... <img src="smileys/smiley20.gif" border="0" align="middle" />

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Thanks, I appreciate that.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)