This content has been marked as final. Show 3 replies
> If anyone has any guidance, advice, commentary, or even good jokes, I
> appreciate it.
Oddly enough, I've actually done exactly what you're describing on my last
job. Not sure what advice I can give or anything, since I don't know what
level of skill you're starting with. Kind of hard to answer a non-specific
question like that anyhow. At any rate, it's entirely possible - one
warning in advance, though, don't use commas for separators in your text
file. I know that's the default itemDelimiter, but it's possible somebody
might want commas in the questions, and it's a real pain to change how
everything works afterwards. (I spent days just going through the thousands
of questions replacing all the commas - except the ones in the questions -
with something else.) My preference since then is to use the | character -
nobody uses that for anything.
Reading text files is OK for some things, but I would suggest you think
about using a database to store your quiz data
(question/answer/rating/etc). Using a database is generally more
efficient. Plus it is great learning experience.
There is a fantastic free (and open source) database called SQLite.
While it is certainly not as power as something like Oracle, it is quite
sufficient for many tasks, including your game. I think is an excellent
way to get started learning how to work with databases. Using this, you
could build a Director program that has all of the code for the game,
but no data. That way you could make as many game sets as you wanted,
without ever having to republish your movie.
You can learn about SQLite on the website http://www.sqlite.org/ but all
you really need to do is download Valentin Schmidt's free SQLite Xtra.
You can get the Xtra as well as Director sample files which demonstrate
how to use it.
Here is a zip file which contains everything you need to get started
(the xtra and a demo movie)
I also recommend getting the SQLite Browser, which provides a easy,
graphical interface for opening and editing a SQLite database.
Learning SQL is easy (easier than Director if you ask me). Here is a
great website that has a SQL tutorial (in addition to many others).
As far as the size of your movie (3 MB) that is as expected. Try this,
make a very simple Director projector that does not, maybe just loops on
an empty frame. I bet you will find that is isn't much smaller.
Thanks to both of you. I figured that a database would probably be the way to go ultimately, I just have rarely used them. No time like the present though....
I will keep an eye out for the delimiter issue as well. I can see that being a pain in the neck.