Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: Yoshi1234 on December 12, 2015, 09:13:18 PM

Title: About Weapon system between Scene
Post by: Yoshi1234 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.
Title: Re: About Weapon system between Scene
Post by: foxdeltagames 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.

Title: Re: About Weapon system between Scene
Post by: Yoshi1234 on December 13, 2015, 10:04:30 AM
Thank You for helping!
Im going to try with your help.
Title: Re: About Weapon system between Scene
Post by: Yoshi1234 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