Coding Weapons

For questions about using Classic.

Post » Mon May 31, 2010 10:52 pm

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. :)
B
1
G
2
Posts: 2
Reputation: 629

Post » Tue Jun 01, 2010 1:39 am

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.
B
9
S
2
G
4
Posts: 346
Reputation: 2,726

Post » Tue Jun 01, 2010 1:50 am

Thank you very much man! I'm not used to Construct still, thanks!
B
1
G
2
Posts: 2
Reputation: 629


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 3 guests