Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - krazziebone02

Pages: 1 2 3 4 ... 8
16
Ask a Question / Re: Pick random scene
« on: January 12, 2015, 08:13:54 am »
ill just wait the reply on my thread

17
Ask a Question / Re: Pick random scene
« on: January 12, 2015, 08:12:24 am »
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

18
Ask a Question / Re: Pick random scene
« on: January 12, 2015, 08:03:36 am »
im sorry for being asking many questions im just newbie

19
Ask a Question / Re: Pick random scene
« on: January 12, 2015, 08:02:43 am »
Luckily almost a year later, I have found a much more easy way of doing this =)

Create a GameAttribute list, and add all names of your scenes to it.

Store the value of a random generated number between 0 and length of the list -1 in a number attribute, then store the value of a random index number between 0 and length of list -1 in a text attribute, remove the item from the list using the number attribute, and switch to a scene with the name of your text attribute =)

sir can you convert this in block codes?? please sir

20
Ask a Question / Re: Pick random scene
« on: January 12, 2015, 07:11:51 am »
what if i i want to remove the scene that is already answered??
what should i do?

It would be courteous to let others know that you already have a thread running on this topic. Sdieters has taken the time to answer your question, but the same answer has already been provided for you in the other thread.

sir i think the reply of sdieters is better........

21
Ask a Question / Re: Pick random scene
« on: January 12, 2015, 07:10:03 am »
Luckily almost a year later, I have found a much more easy way of doing this =)

Create a GameAttribute list, and add all names of your scenes to it.

Store the value of a random generated number between 0 and length of the list -1 in a number attribute, then store the value of a random index number between 0 and length of list -1 in a text attribute, remove the item from the list using the number attribute, and switch to a scene with the name of your text attribute =)

sir what do you mean store?? is it add or insert??

22
Ask a Question / Re: Pick random scene
« on: January 12, 2015, 05:56:08 am »
it's easy.
only problem is you need to specify every scene since you cant call a scene by simply using its name.
what you have to create is a behaviour as such:

lets say you have 5 scenes you want to pick from.
randomNumber << is a number attribute

when the mous (is released) on (self) << you can also place this on a scene behaviour, using the playbutton actor instead of (self).
set (randomNumber) pick a random number between 0 and 4 << giving 5 different options, since 0 is also an option.
IF randomnumber = 0,
*switch to level 1 using fading or not*
OTHERWISE IF = 1,
*switch to level 2 using fading or not*
OTHERWISE IF = 2,
*switch to level 3 using fading or not*
...(repeat this as many times as needed)

what if i i want to remove the scene that is already answered??
what should i do?

23
Ask a Question / Re: randomize a scene
« on: January 12, 2015, 04:08:39 am »
When you no longer want the scene to be available, that's when you can remove the scene number from the list.

For example, if the player answers a question correctly, the scene will no longer be needed, so remove the scene number from the list.

ahhhmmmm i have a codes like this sir

this is my code for level 1

when the mouse was released "the correct answer"
then switch to scene with name: get item # random 1 and 2 from randomquestions
removed item # 0

this is my code for level 2

when the mouse was released "the correct answer"
then switch to scene with name: get item # random 0 and 1 from randomquestions
removed item # 1

this is my code for level 3

when the mouse was released "the correct answer"
then switch to scene with name: get item # random 0 and 1 from randomquestions
removed item # 2

but i get error sir what is the problem with my code sir

24
Ask a Question / Re: randomize a scene
« on: January 12, 2015, 02:11:55 am »
i already do the randoming scene but the problem the scene that i already answered is joined in random again iplease help help

25
Ask a Question / Re: randomize a scene
« on: January 11, 2015, 11:31:56 am »
Sorry, I'm not going to write the code for you!

Work through the process...

Make a list attribute of numbers 1 to 5 and randomly select an item from that list. Delete that item from the list if it is no longer needed

sir is my code correct?? where will i put the remove item?? in the scene that will pick first in random/??? here my code sir


26
Ask a Question / Re: randomize a scene
« on: January 10, 2015, 12:56:43 am »
If you only want each scene to be visited once, then you can keep a record of scenes already visited, for example, in a Game Attribute list.

When a scene number is no longer required (i.e. the question is answered correctly), add it to the list and check the list when randomly selecting the next scene number. If that number is in the list, then reselect a random number...

Or...

Create a randomly ordered list of the numbers 1 to 5 and select the first item in the list as the first scene number. If that question is answered correctly, then delete the first item from the list.

There are quite a few ways to achieve the same result. The best way to solve a problem like this is to think how you would solve the same problem by hand on a piece of paper, then translate your solution into a computer program. If you do this often enough, you will be able to solve problems like this in your head.

sir can you give the block codes? i cant understand you reply sir if okay sir??

27
Ask a Question / randomizing a scene with condition
« on: January 09, 2015, 09:35:57 pm »
i already do what stencyler said but i want to happen is when the question that already answered will not included when the question was  random again??

28
Ask a Question / Re: randomize a scene
« on: January 09, 2015, 07:08:27 pm »
Name your scenes Level1, Level2...Level5

Switch to scene named 'Level' + random number between 1 and 5 as text.

Or just name your scenes 1,2,3,4,5 to make it easier.

sir i already do what you said but i want to happen is when the question that already answered will not included when the question was  randomed??

29
Ask a Question / Re: randomize a scene
« on: January 09, 2015, 01:43:17 am »
Name your scenes Level1, Level2...Level5

Switch to scene named 'Level' + random number between 1 and 5 as text.

Or just name your scenes 1,2,3,4,5 to make it easier.

sir thanks it work im sorry i thought i will put + sign and i try to put & sign and it works thank you so much sir

30
Ask a Question / Re: randomize a scene
« on: January 09, 2015, 01:37:55 am »
Name your scenes Level1, Level2...Level5

Switch to scene named 'Level' + random number between 1 and 5 as text.

Or just name your scenes 1,2,3,4,5 to make it easier.

sir i cant put the random number  inside the block of scene with name

Pages: 1 2 3 4 ... 8