playMaker

Author Topic: I Want to built Weapon Switching System 2D  (Read 1755 times)

amirkhan

  • Playmaker Newbie
  • *
  • Posts: 17
I Want to built Weapon Switching System 2D
« on: August 10, 2018, 07:15:13 AM »
Hello guys i hope you all are well i am a newbie to playmaker i have only maked movement and jump system in playmaker now i want to know that how to pickup weapons and how to switch between them using the numbers on the keyboard like 1,2,3,4 etc

i am new to this so plz help me with this

Fat Pug Studio

  • Beta Group
  • Hero Member
  • *
  • Posts: 1294
    • Fat Pug Studio
Re: I Want to built Weapon Switching System 2D
« Reply #1 on: August 10, 2018, 08:36:42 AM »
You came to the right place!

Make an empty array with 4 places (if you have four weapons, for example), i recommend using arraymaker so you can make an arraymaker proxy, you can find it on ecosystem.
Put your first weapon on index 0.
When you pick up another weapon, according to it's type/name or whatever you want to categorize it with, put it to appropriate index in the array
When you switch weapons (get key down), get the appropriate object/reference from the array
Equip that weapon (play animation, enable it on the player character if you're actually having them all on player and just disabling them and enabling them as you pick them up)

The answer is a bit general, but bear in mind your question is a bit wide and we don't know the specifics of your setup.

Cheers!
Available for Playmaker work

amirkhan

  • Playmaker Newbie
  • *
  • Posts: 17
Re: I Want to built Weapon Switching System 2D
« Reply #2 on: August 10, 2018, 08:58:31 AM »
WELL I GET ONLY 30 PERCENT OF WHAT YOU SAD WILL YOU GIVE ME VIDEO OF THIS PLZ

amirkhan

  • Playmaker Newbie
  • *
  • Posts: 17
Re: I Want to built Weapon Switching System 2D
« Reply #3 on: August 10, 2018, 09:11:33 AM »
because i have only setup run and jump system i dont know how to setup weapon pickup,equip,use and change system

you can say i pretty new to this
and i did not know that the response will be that fast and thanks for replaying to me

Fat Pug Studio

  • Beta Group
  • Hero Member
  • *
  • Posts: 1294
    • Fat Pug Studio
Re: I Want to built Weapon Switching System 2D
« Reply #4 on: August 10, 2018, 09:14:12 AM »
Ok, we can go one by one. Do you already have a weapon on player?
Available for Playmaker work

amirkhan

  • Playmaker Newbie
  • *
  • Posts: 17
Re: I Want to built Weapon Switching System 2D
« Reply #5 on: August 10, 2018, 09:27:55 AM »
No

amirkhan

  • Playmaker Newbie
  • *
  • Posts: 17
Re: I Want to built Weapon Switching System 2D
« Reply #6 on: August 10, 2018, 09:31:54 AM »
me cousin and creating a game and he is creating the first stage and the player he has created the player and given it the animations and i am creating the second stage and creating the weapon for the player

Fat Pug Studio

  • Beta Group
  • Hero Member
  • *
  • Posts: 1294
    • Fat Pug Studio
Re: I Want to built Weapon Switching System 2D
« Reply #7 on: August 10, 2018, 10:07:29 AM »
Well, seems to me that you have to get through some basics first. Here's a nice video on pickups:
Available for Playmaker work

amirkhan

  • Playmaker Newbie
  • *
  • Posts: 17
Re: I Want to built Weapon Switching System 2D
« Reply #8 on: August 10, 2018, 10:16:30 AM »
THANK YOU BRO
I WILL WATCH IT IN MY HOME RIGHT NOW I AM AT WORK AND I WILL GET OFF NOW AND I DONT HAVE INTERNET WITH ME AT HOME SO I WILL CONTACT YOU TOMMOROW ON 12PM SO GOOD BYE AND TAKE CARE