Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: FritsLyn on May 18, 2013, 04:38:52 PM

Title: Reading sequenced data? [SOLVED]
Post by: FritsLyn on May 18, 2013, 04:38:52 PM
At one point I want an action to fire events like this

a, a, c, d, b, a (as an example)

As the player advances, I want to fire the same events, but  in a different ordered sequence:

c, d, b, d, a, c (as an other example)

And I would like to be able to prepare a lot of such sequences for the player.

How would you do that?

Thanks a lot :)
Title: Re: Reading sequenced data?
Post by: FritsLyn on May 18, 2013, 04:58:38 PM
Arh - got it: Make a string, "Get String Right" and so on.

Thanks ;)
Title: Re: Reading sequenced data?
Post by: Alex Chouls on May 18, 2013, 07:37:15 PM
That's a cool idea :)
Title: Re: Reading sequenced data? [SOLVED]
Post by: escpodgames on May 19, 2013, 05:47:23 AM
Oh! I didn't even know they existed!!! I'm going to sure this method from now on.

Saving a single string as a playerpref will be far better than storing a bunch of ints or bools -
Title: Re: Reading sequenced data? [SOLVED]
Post by: jeanfabre on May 19, 2013, 08:02:33 AM
Hi,

 ArrayMaker could be of help here as well. You simply list your actions and you only save the index within that array to know where you are at.

bye,

 Jean