playMaker

Author Topic: Don't Destroy on load + Playmaker = need help[SOLVED]  (Read 3671 times)

Jeremy11K

  • Playmaker Newbie
  • *
  • Posts: 14
Don't Destroy on load + Playmaker = need help[SOLVED]
« 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
« Last Edit: January 01, 2013, 08:14:49 AM by jeanfabre »

kiriri

  • Hero Member
  • *****
  • Posts: 506
Re: Don't Destroy on load + Playmaker = need help
« Reply #1 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.
Best,
Sven

Jeremy11K

  • Playmaker Newbie
  • *
  • Posts: 14
Re: Don't Destroy on load + Playmaker = need help
« Reply #2 on: December 28, 2012, 04:20:21 PM »
Thanks for that kiriri.

I'll give it a shot!

JK

gamedivision

  • Full Member
  • ***
  • Posts: 227
Re: Don't Destroy on load + Playmaker = need help
« Reply #3 on: December 28, 2012, 05:53:30 PM »
i just tested that works perfect