Pick random scene

krazziebone02

  • Posts: 113
ill just wait the reply on my thread
i want to be the best user of stencyl

sdieters

  • Posts: 2068
Yes, we noticed.
We don't mind helping new people, but to be honest, you are very annoying when it comes to spamming. And in such cases I rather want to spend my time on people who wait their turn and don't open multiple threads.

im so sorry for that sir it will not happen again

You also said that after spamming my inbox a while back.
My new profile is TheIndieStation.
When you see a recent post with this name, i'm probably using my phone. So dont mind any typo's =p

krazziebone02

  • Posts: 113
Yes, we noticed.
We don't mind helping new people, but to be honest, you are very annoying when it comes to spamming. And in such cases I rather want to spend my time on people who wait their turn and don't open multiple threads.

im so sorry for that sir it will not happen again

You also said that after spamming my inbox a while back.
\

in that case sir im just curious that you will not read my thread and because im just doing that i believe that you can do what I ask from you sir
i want to be the best user of stencyl

sdieters

  • Posts: 2068
I have seen your thread. But you haven't seem to learn from the warnings from other users you got in the past.
I have just finished a 24 game jam with stencyl, so you might understand I don't feel like creating a code that is fairly easy to understand with the instructions I gave you before.
My new profile is TheIndieStation.
When you see a recent post with this name, i'm probably using my phone. So dont mind any typo's =p

krazziebone02

  • Posts: 113
I have seen your thread. But you haven't seem to learn from the warnings from other users you got in the past.
I have just finished a 24 game jam with stencyl, so you might understand I don't feel like creating a code that is fairly easy to understand with the instructions I gave you before.

ok thank you sir i will NEVER ask a question in the FORUM now i know what is FORUM thank you i wish the users of stencyl will stay using the stencyl
i want to be the best user of stencyl

sdieters

  • Posts: 2068
My new profile is TheIndieStation.
When you see a recent post with this name, i'm probably using my phone. So dont mind any typo's =p

Innes

  • *
  • Posts: 1963

ok thank you sir i will NEVER ask a question in the FORUM now i know what is FORUM thank you i wish the users of stencyl will stay using the stencyl


No one is suggesting that you should never ask a question in the forums - just that some courtesy is shown to others. There are no fixed rules about asking questions, but there are good ways to do it, and not so good ways. If you use the 'not so good' ways, then you are less likely to receive help.

For example:
  • Provide as much information as possible to help others answer your question
  • Show screenshots (not pseudo code) of your events, or upload a .stencyl file
  • Don't bump your own thread
  • Don't PM individuals asking for their help, when a question on the forum can be seen by everyone
  • Don't repeat the same question on multiple threads
  • If someone else asks the same question on a different thread, let them know that another thread already exists
  • Learn from your previous mistakes and take advice from others
Please note that there are no bad feelings towards you - we like to help (that's why we are here), but you need to be patient and courteous. I do understand that language can be a barrier, and I hope that I have taken that into account.

Visit www.TheStencylBook.com - the only published book for learning Stencyl.

Innes

  • *
  • Posts: 1963
I had some spare time, so here's an example of how to randomly select scenes and then remove the selected scene from the list, so it can only be selected once:

Wait for the Flash file to load:

<a href="http://www.filz.us/files/a9332246/322/Random_Item_Selection_amp_Scene_switching.swf" target="_blank" class="new_win">http://www.filz.us/files/a9332246/322/Random_Item_Selection_amp_Scene_switching.swf</a>

The code demonstrated here is relevant for random selection of any items, not just scenes. Because we are switching between scenes, the list must be held in a Game Attribute otherwise we'd lose the list each time the scenes switched. If the random selection is only required within a single scene, then an 'ordinary' list attribute can be used within the scene.

Enjoy.
Visit www.TheStencylBook.com - the only published book for learning Stencyl.

krazziebone02

  • Posts: 113

ok thank you sir i will NEVER ask a question in the FORUM now i know what is FORUM thank you i wish the users of stencyl will stay using the stencyl


No one is suggesting that you should never ask a question in the forums - just that some courtesy is shown to others. There are no fixed rules about asking questions, but there are good ways to do it, and not so good ways. If you use the 'not so good' ways, then you are less likely to receive help.

For example:
  • Provide as much information as possible to help others answer your question
  • Show screenshots (not pseudo code) of your events, or upload a .stencyl file
  • Don't bump your own thread
  • Don't PM individuals asking for their help, when a question on the forum can be seen by everyone
  • Don't repeat the same question on multiple threads
  • If someone else asks the same question on a different thread, let them know that another thread already exists
  • Learn from your previous mistakes and take advice from others
Please note that there are no bad feelings towards you - we like to help (that's why we are here), but you need to be patient and courteous. I do understand that language can be a barrier, and I hope that I have taken that into account.



i accept that sir i just want to apologize but my apologize didn't accept so i post something like this sir
i want to be the best user of stencyl

krazziebone02

  • Posts: 113
I had some spare time, so here's an example of how to randomly select scenes and then remove the selected scene from the list, so it can only be selected once:

Wait for the Flash file to load:

<a href="http://www.filz.us/files/a9332246/322/Random_Item_Selection_amp_Scene_switching.swf" target="_blank" class="new_win">http://www.filz.us/files/a9332246/322/Random_Item_Selection_amp_Scene_switching.swf</a>

The code demonstrated here is relevant for random selection of any items, not just scenes. Because we are switching between scenes, the list must be held in a Game Attribute otherwise we'd lose the list each time the scenes switched. If the random selection is only required within a single scene, then an 'ordinary' list attribute can be used within the scene.

Enjoy.

sir i downloaded your file but i try to import it in stencyl but when the game was open  no display it is just gray screen sir
what is the problem sir??
i want to be the best user of stencyl

letmethink

  • *
  • Posts: 2547
You need Stencyl 3.2 to open it.
~Letmethink

krazziebone02

  • Posts: 113
i want to be the best user of stencyl

krazziebone02

  • Posts: 113
I had some spare time, so here's an example of how to randomly select scenes and then remove the selected scene from the list, so it can only be selected once:

Wait for the Flash file to load:

<a href="http://www.filz.us/files/a9332246/322/Random_Item_Selection_amp_Scene_switching.swf" target="_blank" class="new_win">http://www.filz.us/files/a9332246/322/Random_Item_Selection_amp_Scene_switching.swf</a>

The code demonstrated here is relevant for random selection of any items, not just scenes. Because we are switching between scenes, the list must be held in a Game Attribute otherwise we'd lose the list each time the scenes switched. If the random selection is only required within a single scene, then an 'ordinary' list attribute can be used within the scene.

Enjoy.

sir what if the game is over?? how to reset the lists??
i want to be the best user of stencyl

Innes

  • *
  • Posts: 1963
If you want to reset the list, you will need to copy the original list into another list Game Attribute at the start of the game, and work with the copy each time the game is played.
Visit www.TheStencylBook.com - the only published book for learning Stencyl.

krazziebone02

  • Posts: 113
If you want to reset the list, you will need to copy the original list into another list Game Attribute at the start of the game, and work with the copy each time the game is played.

sir how to validate if the that scene is already remove?? i get an error because i think it needs to validate before it random the scenes??
i want to be the best user of stencyl