Weapon switch

Discussion and feedback on Construct 2

Post » Wed Sep 07, 2011 9:38 am

OK I have it all working and followed your advice, EXCEPT for the put-away and take-out animations for each weapon. I am a bit lost as to what to do for these. I have these animations as animations within the main weapon object but they are not used by the program as of yet.

Any advice as to how I can implement this feature?

Much thanks for all your help :)
B
90
S
30
G
24
Posts: 3,189
Reputation: 32,400

Post » Wed Sep 07, 2011 5:39 pm

could you post your project or screenshot from your event editor? that would help us to help you :)
ImageImageImageImage
B
140
S
58
G
36
Posts: 2,547
Reputation: 31,170

Post » Thu Sep 08, 2011 8:48 am

OK, Here is my event sheet. It will probably help to know that it is a top down tank game. The other weapons are further below but follow the same model as 'turret_basic'.



What I need is a way to integrate the 'put away' and 'take out' animations efficiently.
B
90
S
30
G
24
Posts: 3,189
Reputation: 32,400

Post » Sat Sep 10, 2011 6:23 am

I have solved this problem thanks no a nice session in the chat. Thank you for all suggestions guys!
B
90
S
30
G
24
Posts: 3,189
Reputation: 32,400

Post » Wed May 09, 2012 4:20 pm

Hi guys, I'm trying to make a sidescrolling shooter, but I'm stuck with the weapon system. I've got 4 different weapons and the sprites are organized in that way:

- main character (it has 2 sets of animations: run body, idle body);
- weapon A, B, C, D (each has 3 set of animation: idle, run, fire);
- unharmed arm complementary to single handed weapons;
- explosion (the flame burst from the weapon, a small animation).

I've done my best to organize the .capx, but I'm getting real crazy 'cos:

- the one shot weapons are supposed to shot once for every time you push the button;
- the autofire weapon are supposed to shot continously till you hold down the fire button;

My problem is that nothing works actually :( and I when something start working the animations when a condition change don't mach (ex: if weapon is firing and it stops while moving, it will not be on "run" again).

Anyway, here we have the .capx file.

http://dl.dropbox.com/u/42804939/help.capx

Could you help me in making some exemple capx or tutorial? Thank you so much guys!!!

B
18
S
3
G
3
Posts: 16
Reputation: 3,335

Post » Wed May 09, 2012 6:28 pm

Wow, this is an old thread!
Anyway, happy to help. I can't access the capx file now however (not at home) ... I may in a few hours.
B
90
S
30
G
24
Posts: 3,189
Reputation: 32,400

Post » Thu May 10, 2012 12:24 am

thanks man, I really appreciate it!!!

Another user already give some help, but there are still problems... could you please join this tread for continuing it?

http://www.scirra.com/forum/topic51969.html

There can find a new capx and a little analysis I've done for the problem I can't solve.

Thank you again for your help, I really appreciate it!!!
B
18
S
3
G
3
Posts: 16
Reputation: 3,335

Post » Fri Jul 04, 2014 6:05 pm

@sqiddster. thanks for the solution, this is a big help.
B
13
S
5
G
1
Posts: 119
Reputation: 2,292

Previous

Return to Construct 2 General

Who is online

Users browsing this forum: tayxd and 14 guests