Set angle for weapons with variable

0 favourites
  • 1 posts
From the Asset Store
Easily store, modify, read and manipulate colors with Color Variables!
  • 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).

    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

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)