help with multiple weapons and respawns

For questions about using Classic.

Post » Mon Feb 21, 2011 9:05 pm

hi I was wondering if anyone could help me out here. first off let me explain I am making a top and down shooter, Here is my problem, I give my player health in the form of variables. For instance when there is the start of the layout I give my player 30 health in the variable and each time a bullet sprite collides with my character its minus 5 from the health variable. And I have another variable set up so that when the hp is less than zero the character object is destroyed. but under the same event I have create player in it. Now the problem is that the character re spawns just like it is supposed to. it follows the mouse and everything. the only problem is that when I press any of the movement keys on the keyboard the sprite doesn't move. I have it set so that I have an object where the sprite is created when it dies. I know it seems long I'm so sorry but these are the issues iv been fiddling around with and haven't been able to figure out yet. one more thing Is how do I make multiple weapons and have my players gun that its holding switch. lets just say I want to have a spread shot type weapon well instead of having the character sprite holding the pistol weapon have it holding the shotgun weapon. I hope all of this makes sense thanks for helping out a newb PS some help with showing me how to make a spread shot type weapon would be nice also thanks
B
1
G
1
Posts: 4
Reputation: 433

Post » Mon Feb 21, 2011 9:39 pm

Cap would help a lot if you could provide us with one?
B
11
S
3
G
4
Posts: 622
Reputation: 3,186

Post » Tue Feb 22, 2011 2:38 am

im sorry at the moment I feel realy stupid right now but do I have to put it up on another download site and put up the link or is there something obviose about posting files im sorry But I am tottally new to the forums
B
1
G
1
Posts: 4
Reputation: 433

Post » Tue Feb 22, 2011 3:06 am

Yes, just put it up on any filesharing site and post the link. Mediafire is good, or get a DropBox or Box.net account.
B
55
S
12
G
8
Posts: 339
Reputation: 9,314

Post » Tue Feb 22, 2011 5:08 pm

http://www.mediafire.com/?r0n8rbbyeyw1aqn allright that should be the link
B
1
G
1
Posts: 4
Reputation: 433

Post » Sun Feb 27, 2011 5:22 pm

can someone please help me out
B
1
G
1
Posts: 4
Reputation: 433

Post » Tue Mar 08, 2011 7:50 am

Multiple weapons: on the character sprite, make another animation and call it as the new weapon. copy all of the frames from the default animation and paste them in the new weapon animation. then edit them in the picture editor so the character is holding the new weapon. go to event sheet editor and make a new event:
On (character sprite) collision with (new weapon sprite)
Then add an action to it:
(character sprite) Change animation to (new weapon animation)
And another action to it:
(new weapon sprite) Destroy


Thats how to change the look of the character. Make sure you make the same event, but with the original weapon and with the default animation, so you can change back to the original weapon as you walk over it.
B
1
G
1
Posts: 1
Reputation: 427


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 8 guests