playMaker

Author Topic: Reading sequenced data? [SOLVED]  (Read 2291 times)

FritsLyn

  • Full Member
  • ***
  • Posts: 191
Reading sequenced data? [SOLVED]
« 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 :)
« Last Edit: May 18, 2013, 07:37:39 PM by Alex Chouls »

FritsLyn

  • Full Member
  • ***
  • Posts: 191
Re: Reading sequenced data?
« Reply #1 on: May 18, 2013, 04:58:38 PM »
Arh - got it: Make a string, "Get String Right" and so on.

Thanks ;)

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 4000
  • Official Playmaker Support
    • LinkedIn
Re: Reading sequenced data?
« Reply #2 on: May 18, 2013, 07:37:15 PM »
That's a cool idea :)

escpodgames

  • Hero Member
  • *****
  • Posts: 687
    • Assets
Re: Reading sequenced data? [SOLVED]
« Reply #3 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 -
« Last Edit: May 19, 2013, 07:13:55 AM by LampRabbit »

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Reading sequenced data? [SOLVED]
« Reply #4 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