playMaker

Author Topic: About Weapon system between Scene  (Read 1502 times)

Yoshi1234

  • Playmaker Newbie
  • *
  • Posts: 11
    • View Profile
About Weapon system between Scene
« on: December 12, 2015, 09:13:18 PM »
Hi , I am very beginner.

I want to make a "Select Weapon Scene and Game Scene1,2"

Select Weapon Scene has two weapons (Sword and Gun) , Player can select which he is going to use on Game Scene. This Scene is making by uGUI.

On Game Scene1, 2 , I want to give him a selected weapon through two scenes.
After that going back Select Weapon Scene.

I know how to use basic uGUI and Playmaker.

I want to know how can I make this system.

Thank you.

foxdeltagames

  • Junior Playmaker
  • **
  • Posts: 62
    • View Profile
Re: About Weapon system between Scene
« Reply #1 on: December 13, 2015, 09:46:55 AM »
There are a few ways to do this. I dont have the time right now so ill just give you one simple option.

Try using global variables. Make a global variable(var), set it as a game object. What you do is save the game object you picked in that var you just made. This allows you to transfer objects in and out of sences.


Yoshi1234

  • Playmaker Newbie
  • *
  • Posts: 11
    • View Profile
Re: About Weapon system between Scene
« Reply #2 on: December 13, 2015, 10:04:30 AM »
Thank You for helping!
Im going to try with your help.

Yoshi1234

  • Playmaker Newbie
  • *
  • Posts: 11
    • View Profile
Re: About Weapon system between Scene
« Reply #3 on: December 13, 2015, 10:23:36 AM »
Hi foxdeltagames !!
I cloud make appear Weapon which I selected on "Select Weapon Scene".
However it does not appear as a children of a character's hand. So The weapon is just standing there  :-\
I used  "Create GameObject  and  Set Parent" but it was error and it says
"Setting the parent of a transform which resides in a prefab is disabled to prevent data corruption".


Also I set a weapon animation on a character therefore should I set both weapon's animations on a character and make a check system "is this a Gun or Sword" ?

Actually I want make more weapons, my concerning is set many animations use a lots memory , or not.



Thank you :D
« Last Edit: December 13, 2015, 10:31:04 AM by Yoshi1234 »