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

0 favourites
  • 6 posts
From the Asset Store
Full game Construct 2 capx code source to post on Google Play
  • 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!

  • it's just a matter of assigning an instance variable WEAPONS to your character sprite and switching in between values.

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

  • 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.

  • 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]

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • nice

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)