How do I make power ups?

Get help using Construct 2

Post » Thu Nov 17, 2011 4:10 am

How do I make a power up so that when my character collides with a gun it adds the gun and changes the animation and then switch back to another animation?
B
2
G
1
Posts: 8
Reputation: 466

Post » Sun Mar 31, 2013 2:48 pm

You can have different frames for your gun sprite. how does your character look like? did you stick the gun to the player by a separate sprite? if you did so, you can simply change the animation frame. for example frame 0 is your normal gun. frame 1 is a shotgun and then set the animation frame to 1 if the player is on colliosion with the powerup sprite.
B
23
S
6
G
5
Posts: 132
Reputation: 4,487

Post » Tue Apr 02, 2013 6:22 am

@Philx
That would work, but if I were to make a side scrolling shooting game (for any of those who may be doing so) I would set the X and Y position of the gun to the player and add a variable to the gun the would be something like "PickedUp" 0 for no and 1 for yes. Then, add a condition stating that if PickedUp is 0 coming in contact with it will pin it to the player and rotate towards the mouse and another condition that if PickedUp is 1 it will not do that and instead fill the Ammo of the player and destroy itself.
B
4
Posts: 63
Reputation: 701

Post » Tue Apr 02, 2013 8:52 am

also depending on if you want pickups, you can use the basics of the powerup section of my wall jumping tutorial for the actual sprite pickup piece on page 8. Tutorial link is in my signature...
B
49
S
11
G
10
Posts: 1,833
Reputation: 14,413


Return to How do I....?

Who is online

Users browsing this forum: plinkie and 17 guests