|
Constantine Akina
Registered User
Join date: 30 Nov 2008
Posts: 1
|
11-30-2008 13:38
Hi everybody, I was hoping to get some hints or advice that will point me in the right direction in creating the game below. Any advice would be greatly appreciated!
I'm new to SL scripting but I have some experience with programming in Java. My goal is to create a basic text game in which a user can click on an object(e.g. a piece of paper) and "play" the math game, which amounts to say 5 math problems. The game would be timed and the math problems would save the number of correct and time to complete after the user finishes.
For example
1+1 = __ (correct answer = 2) 2+2 = __ (correct answer = 4) 3X4 = __ (correct answer = 12) 4 mod 2 = __ (correct answer = 0) 8 mod 3 = __ (correct answer = 2)
|
|
Osgeld Barmy
Registered User
Join date: 22 Mar 2005
Posts: 3,336
|
11-30-2008 19:19
im sorry, what was the question
|
|
Hewee Zetkin
Registered User
Join date: 20 Jul 2006
Posts: 2,702
|
11-30-2008 20:50
Perhaps multiple choice answers with buttons for each answer? Floating text is easiest for both question and answer, but you could use textures instead with some work (search for XyText I believe it is called). You could probably also do it with llDialog() if you want to let multiple residents participate at once and don't mind a little dialog window instead of a pretty picture board.
|
|
Void Singer
Int vSelf = Sing(void);
Join date: 24 Sep 2005
Posts: 6,973
|
11-30-2008 21:53
all depends on how you want to display the game, and how you want users to repond....
simplest would be a large list of questions, along with a list of answers to check against...
list llListRandomize llListen llSay llTimerEvent
those are the functions you'll want to read on
_____________________
| | . "Cat-Like Typing Detected" | . This post may contain errors in logic, spelling, and | . grammar known to the SL populace to cause confusion | | - Please Use PHP tags when posting scripts/code, Thanks. | - Can't See PHP or URL Tags Correctly? Check Out This Link... | - 
|
|
Nyoko Salome
kittytailmeowmeow
Join date: 18 Jul 2005
Posts: 1,378
|
11-30-2008 23:09
:0 if new to lsl, it is 'state-based' programming - slightly confusing at first, but easy enough to adapt to. basically usually you only need a 'default' state to run simple things; more complex scripts can utilize multiple states to piece up some operations. (but basically, if you can cram everything into one state, then that's best...  lsl wiki should have plenty of sample scripts and info... http://wiki.secondlife.com/wiki/Statethat's just for the basic basic script structure; after that, it's mostly all the 'same ol' programming', albeit within some pretty strict limitations... ;0 but sometimes it's good to have a wall to push against.  good luck, have fun! 
_____________________
 Nyoko's Bodyoils @ Nyoko's Wears http://slurl.com/secondlife/Centaur/126/251/734/ http://home.comcast.net/~nyoko.salome2/nyokosWears/index.html "i don't spend nearly enough time on the holodeck. i should go there more often and relax." - deanna troi
|