How do I do a weapon swap like Megaman or Indivisible?

Get help using Construct 2

Post » Sat May 13, 2017 8:00 pm

I'm sure mostly all of anyone reading this knows the games Megaman and Indivisible so you'll know you are able to switch freely between weapons and power-ups. I am making a platformer, metroidvania level inspired by Indivisible for college and I've gotten quite far with it, but one thing that I can't figure out is how to change weapons like Megaman or Indivisible.
I haven't even figured out how to make my character preform an attack. Please help me!
B
2
Posts: 6
Reputation: 162

Post » Sat May 13, 2017 8:29 pm

it's just a matter of assigning an instance variable WEAPONS to your character sprite and switching in between values.
Image Image Image
B
32
S
12
G
27
Posts: 761
Reputation: 17,244

Post » Sun May 14, 2017 6:23 pm

So when I add the instance variable to my character sprite how do I make it switch in between values?
B
2
Posts: 6
Reputation: 162

Post » Sun May 14, 2017 7:22 pm

You add the condition you want. As action you choose youre player and than there you can choose between add to value, set value and so one. Verry simple. I hope i answered your question.
My Project at this time: robottory-2d-platformer-devlog_t190807



(Sorry for my english. I know it is not the best)
B
17
S
10
G
4
Posts: 120
Reputation: 3,505

Post » Sun May 14, 2017 7:27 pm

Bahamur wrote:So when I add the instance variable to my character sprite how do I make it switch in between values?

It's up to you really.
Press of a key, touch of a button on screen...

Try these:
[Your condition] | Add 1 to Player.Weapon
[Your condition] | Subtract 1 from Player.Weapon
[Your condition] | Set Player.Weapon to [your number of choice]
Image Image Image
B
32
S
12
G
27
Posts: 761
Reputation: 17,244

Post » Sun May 14, 2017 7:51 pm

nice
B
25
S
6
G
4
Posts: 173
Reputation: 3,933


Return to How do I....?

Who is online

Users browsing this forum: MadSpy and 33 guests