Page 1 of 2

Flash Teases

Posted: Thu May 07, 2009 10:44 am
by Miss_Lisa
Hey everyone...anybody know how to make a random ending in the flash editor? i can get it to go from page to page, but i want to press a button and make the following page a random choice of a few outcomes.

can anyone help?

Thankyou boys!

x x x

Re: Flash Teases

Posted: Thu May 07, 2009 11:02 am
by Little Miss Jay
Good question Miss Lisa,

I wanted to do that on my last flash tease but couldn't see how to do it! So it would be really helpful to know if it is possible! :smile:

Little Miss Jay x

Re: Flash Teases

Posted: Thu May 07, 2009 11:54 am
by deathby.curiosity
I wish I could say I figured this out myself, but I don't have much experience with Nyx. However, I did a wee bit of research and came up with this post:

http://www.milovana.com/forum/viewtopic ... ing#p21335

Should explain well enough... obviously this means you'll have to dabble in scripting, which you may or may not be terribly comfortable with.

From how I understand it, you would just create a "continue" button, then go into the script and change it to be:

Code: Select all

go(range(1,5))
Like texturedshroom says though, that would mean the random pages you want to choose from would be numbered 1-5.

I could also be totally off about this, but from my limited coding experience sure makes sense to me.

Re: Flash Teases

Posted: Thu May 07, 2009 3:18 pm
by Little Miss Jay
Thanks for the reply Curiosity, I'll give it a go next time I want a random ending ;-)

Little Miss Jay x

Re: Flash Teases

Posted: Thu May 07, 2009 3:35 pm
by deathby.curiosity
You're very welcome!

I tried making a quick test tease.. but it seems the buttons don't work in the preview? ... maybe just my browser?

Plus, solving problems is fun for me.. I love a good puzzle (which is all coding is imho)!

Re: Flash Teases

Posted: Thu May 07, 2009 4:18 pm
by all2true
random pages in a flashtease is a lot of work
You HAVE to work in Nyx coding
you have to know several things.
A. using the random fuction works only Once, you also have to include a reset fuction if you
want to do a random page more than once (see my Flashtease Stoker's Challanged)
http://www.milovana.com/webteases/showflash.php?id=4218

B. You can not have more than 2 options when doing random pages
by that I mean you can NOT have a page with 3 buttons.

I am including the code from Stroker's Challange to help you with this.

Code: Select all

page8#page(
'<TEXTFORMAT ....   KERNING="0">hit the edge botton ONLY when you hit the edge.</FONT></P></TEXTFORMAT>',
pic("141cn3.jpg"),
delay(30sec, range(1,3))
);

1#page(
'<TEXTFORMAT LEADING="2>   ...   </TEXTFORMAT>',
pic("2*.jpg"),
buttons(page12#, "Edge"),
delay(32sec, range(1,3),style:secret),
hidden:mult(sound('45bps-30s.mp3'), unset(1#))
);

Please note the UNSET code after the page is needed
if you have a page that will be hit more than once by a random function
also the hidden sound now must include the Multi fuction if you are using the Unset feature
If you have any questions PM me.
For help actually working with the Script, Seraph was very helpful for me.
or PM the script.

Re: Flash Teases

Posted: Thu May 07, 2009 11:51 pm
by cumhardy
im kinda new to it but managed to do some random stuff. its not too hard once you get the code.
some advice:

I found it easier to name the random pages '#1,#2,#3' etc instead of '#page1,#page2,#page3'. just makes things simpler (in my mind).

also do as much as you can in the visual editor before you mess around with the script.
If you change something in the script and go back into visual editor, I find it adds some extra #'s into the script and messes it up.

Make sure you copy all the script into a text file incase you mess it up later.

When you change the script and try to preview it, sometimes it doesnt work till you have cleared your internet history/temp internet files. I dunno why.

Itys not too hard to put randomness into nyx. Im a complete novice and it sounds a lot harder than it is.

when i did it i used the post from texturedshroom where he showed the code to one of his teases. i copied the random script and pasted it into my own. easy

Re: Flash Teases

Posted: Fri May 08, 2009 2:24 am
by avatarbr
One tip:

Build all what you need in Visual Editor. Only after that, go to the Nyx code (you can copy and use a text editor, like notepad, then paste in nyx again).

In my experience, when you edit in Nyx Code and back to the Visual Editor, it´s mess all your code.

Re: Flash Teases

Posted: Mon May 18, 2009 12:24 am
by slave alexander
My head hurts :-P

Re: Flash Teases

Posted: Mon May 18, 2009 11:50 am
by cumhardy
slave alexander wrote:My head hurts :-P
Lol! Btw, slave alexander I know you were asking about making multiple paths in teases. You dont need to know all this stuff to do that in a flashtease. Its really easy to use the editor, this is just for random outcomes. To make multiple paths you dont even need to edit the script.

Re: Flash Teases

Posted: Mon May 18, 2009 12:09 pm
by slave alexander
cumhardy wrote:
slave alexander wrote:My head hurts :-P
Lol! Btw, slave alexander I know you were asking about making multiple paths in teases. You dont need to know all this stuff to do that in a flashtease. Its really easy to use the editor, this is just for random outcomes. To make multiple paths you dont even need to edit the script.
Thanks cumhardy by the way are you red or blue, I`ll pm you anyway with a funny story!!

Re: Flash Teases

Posted: Mon May 18, 2009 11:33 pm
by cumhardy
Neither! Ive only lived in manchester for a couple years and im getting stereotyped already :P lol

Re: Flash Teases

Posted: Wed May 20, 2009 9:25 am
by slave alexander
cumhardy wrote:Neither! Ive only lived in manchester for a couple years and im getting stereotyped already :P lol
Sorry about that, perhaps if i sent you a meat and potatoe pie with mushy peas and gravy, a pint of bitter and a flat cap would this help as a peace offering!!!
:lol: :-P

Only messing, you may well drink boddingtons, what about a pipe and a bag of coal/ cotton, perhaps your horse is hungry I`ll stop now before things get really silly

ps please feel free to throw some southern jibes my way, i do love a nice shandy and am partial to the odd prawn sandwich

slave alexandro

Re: Flash Teases

Posted: Wed May 20, 2009 12:19 pm
by cumhardy
slave alexander wrote:
cumhardy wrote:Neither! Ive only lived in manchester for a couple years and im getting stereotyped already :P lol
Sorry about that, perhaps if i sent you a meat and potatoe pie with mushy peas and gravy, a pint of bitter and a flat cap would this help as a peace offering!!!
:lol: :-P

Only messing, you may well drink boddingtons, what about a pipe and a bag of coal/ cotton, perhaps your horse is hungry I`ll stop now before things get really silly

ps please feel free to throw some southern jibes my way, i do love a nice shandy and am partial to the odd prawn sandwich

slave alexandro
Lol no I think Miss Jay is from down south, I dont wanna attract any undue attention :look:


............................................................... 'Ave a Banana!

Re: Flash Teases

Posted: Wed May 20, 2009 12:21 pm
by dix
slave alexander wrote:
cumhardy wrote:Neither! Ive only lived in manchester for a couple years and im getting stereotyped already :P lol
Sorry about that, perhaps if i sent you a meat and potatoe pie with mushy peas and gravy, a pint of bitter and a flat cap would this help as a peace offering!!!
:lol: :-P

Only messing, you may well drink boddingtons, what about a pipe and a bag of coal/ cotton, perhaps your horse is hungry I`ll stop now before things get really silly

ps please feel free to throw some southern jibes my way, i do love a nice shandy and am partial to the odd prawn sandwich

slave alexandro
Ohhhhh..... You shandy drinking southern fairy Alex!!! :rant:

:lol:

d.