setting bullet angle with multiple weapons and local multiplayer

0 favourites
  • 2 posts
From the Asset Store
Ludo Local Multiplayer board game can be played by 2 to 4 players
  • Im not sure how to set the correct bullet angle when there could be multiple instances of the same gun in the scene at one time. I could have the bullet on created spawn and correlate with the player but I would like up and down aiming as well and preferable spawning on correct image points on the weapon. A recent project I've seen similar is a game like Vimlarks "Monkeys With Guns"

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • You'll need some way to differentiate the gun object instances so that you can pick them properly. Can be done with an instance variable.

    For example, when spawning a gun for a player, set an instance variable in the gun object to playerSprite.UID. This will associate the gun to that player, and you can pick that gun in particular by comparing instance variables.

    Better yet, use the same method you're already using to pick the correct player sprite to move for your controls.

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