The Daily Click ::. Forums ::. Klik Coding Help ::. Flashcard program...i need help
 

Post Reply  Post Oekaki 
 

Posted By Message

curtaineater



Registered
  12/06/2003
Points
  23
1st March, 2004 at 19:27:57 -

How can i make a quiz type flashcard program that will put up 1 random object in 1 random direction (of certain directions, not out of them all)? I have it set up so far as different items, with different directions, which display different pictures, and then i type in the box what it is, and if Object # is up and animation # is playing, and i typed in "######" and hit enter, then it says its right, or wrong if i typed in the wrong stuff. Id reall appreciate some help cause im no good.

 
n/a

DEC Stuff



Registered
  07/07/2003
Points
  1348
1st March, 2004 at 19:36:08 -

I would use the random function.

Calculate a random number by using Random(10). This would calculate a random number between 0-9 or 0-10
I think.

Hopefully someone else has something else to say about this.

 
http://www.decstuff.net

ShadowCaster

Possibly Insane

Registered
  02/01/2002
Points
  2203
1st March, 2004 at 20:54:45 -

If you have MMF 1.5.117...

Properties -> New Movement -> Static -> Initial Direction

And select the directions you want. Then, when you create the object it'll be facing one of those random directions. Pre-1.5.117 I believe that there was a bug which caused the initial direction to always be set to 0, even if you specified it as random.

That's if you're creating new objects for each question. As DEC said, if you'll simply be changing the direction on the one object, then use random values. I'm not sure if all Clickteam software supports setting the direction based on a numerical value (0-31), I know MMF 1.5 does, and I have a feeling that anything before that doesnt. But I may be wrong about that.

Mike

 
"Now I guess we're... 'Path-E-Tech Management'" -Dilbert
   

Post Reply



 



Advertisement

Worth A Click