Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: Jeremy11K on December 27, 2012, 05:12:21 PM

Title: Don't Destroy on load + Playmaker = need help[SOLVED]
Post by: Jeremy11K on December 27, 2012, 05:12:21 PM
Hi all,

I'm trying to keep music playing between scenes, which I've found I can do by adding a "Don't Destroy on load" PM to my music game object.

Problem is, I'd like to dynamically change the music in the following loaded scenes.

Is there a way that I can effect/reference a game object loaded from another scene with Playmaker?

Thanks and happy holidays!
JK
Title: Re: Don't Destroy on load + Playmaker = need help
Post by: kiriri on December 27, 2012, 06:02:46 PM
that's pretty much what global variables are for I guess. Just create a new global gameObject variable and use a Set GameObject action in the start state of the gameObject playing the music.
Title: Re: Don't Destroy on load + Playmaker = need help
Post by: Jeremy11K on December 28, 2012, 04:20:21 PM
Thanks for that kiriri.

I'll give it a shot!

JK
Title: Re: Don't Destroy on load + Playmaker = need help
Post by: gamedivision on December 28, 2012, 05:53:30 PM
i just tested that works perfect