Forums > MaxMSP

Choose Your Own Adventure

April 11, 2007 | 7:30 am

We are beginners trying to create a patch which has multiple pathways where the user has a range of choices depending on their previous choices. Any advice appreciated…

Thanks


April 11, 2007 | 8:57 am

Of course there are various ways of doing this. You can just use gates or routes to diverge your path. You can also use different ways of interaction. Basic example:

#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P newex 312 60 20 196617 t b;
#P newex 257 187 94 196617 print I_went_right;
#P newex 166 187 88 196617 print I_went_left;
#P message 312 82 139 196617 symbol "Wrong input! Again";
#P newex 166 125 69 196617 route symbol;
#P newex 166 145 78 196617 route left right;
#P message 166 82 143 196617 symbol "Choose left or right";
#P newex 166 61 20 196617 t b;
#P newex 166 104 182 196617 dialog Do you want to go left or right?;
#P message 166 42 92 196617 click here to start;
#P connect 9 0 6 0;
#P connect 4 2 9 0;
#P connect 4 1 8 0;
#P connect 4 0 7 0;
#P fasten 6 0 1 0 317 100 171 100;
#P connect 1 0 5 0;
#P connect 5 0 4 0;
#P connect 3 0 1 0;
#P connect 0 0 2 0;
#P connect 2 0 3 0;
#P window clipboard copycount 10;

If you’re planning to make some kind of text adventure game, i think i’d advise against using Max. If you’re only going to use everything in your patch once, it’s a lot more work building it in Max than in a regular programming language. I don’t think much work has been done in this area with Max. Good luck!



_j
April 11, 2007 | 9:04 am

you could use jit.turgle or whatever it is and use colors to generate events.


Viewing 3 posts - 1 through 3 (of 3 total)