Coding Weapons

This forum is currently in read-only mode.
From the Asset Store
5 levels with simple coding Source-code (.c3p) + HTML5 Exported
  • Hey, I'm new to Construct and to this Forum. I'm trying to work on a game, and so far, have been able to code everything I wanted without too much error, in general they are the beginnings of my game, very basic. Now I'm trying to make a weapons system similar to most shooters, where you switch between weapons by pressing 1 2 and 3, as well as any other numbers.

    Now I have a problem though, I cannot get a way to make it so when you press 1, a new weapon will come up and you can fire it with the left click, and when you press 2 it'll fire a different gun. I don't know how to do it correctly, or how to ensure it's optimized.

    Thank you for the help in advance.

  • Each weapon could be set in its own event group, which you switch on or off. Using variables you can use the same bullet objects and so on for each weapon with completely different speeds, angles, damages effects etc.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Thank you very much man! I'm not used to Construct still, thanks!

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