Adventure Creator original thread

Tips, techniques and tutorials about creation tools.

Re: A tool to help write "Virtual Date" games

Postby tlaero » Sun, 12Nov18 02:57

I've uploaded a new version of adventure creator. The program is still 3.0, but _functions.js in the tutorials handles the new way of doing variables that increases the number of them you can have. No changes in your code necessary. Just grab the updated _functions.js.

https://rapidshare.com/files/942810411/ ... reator.zip

Tlaero
User avatar
tlaero
Lady Tlaero, games and coding expert
 
Posts: 1829
Joined: Thu, 09Jun04 23:00
sex: Female

Re: A tool to help write "Virtual Date" games

Postby tlaero » Sun, 12Nov18 03:42

Here's how to figure out how many variables you can have now. I store all the variables in a 4096 character string. Each variable has the name, the number, and two other characters. Assuming most variables have a single digit number, and assuming the names are 7 characters, you've now got room for over 400 variables. If you need more than that, you can use shorter variable names. With 4 letter variable names you've got room for 580 and with 3 letter variable names you've got room for 680.

If people start doing games with more than that number of variables, I can make it use more strings. But I've never come close to that, so I figure this is probably enough for a while.

Tlaero
User avatar
tlaero
Lady Tlaero, games and coding expert
 
Posts: 1829
Joined: Thu, 09Jun04 23:00
sex: Female

Re: A tool to help write "Virtual Date" games

Postby sylakone2 » Sun, 12Nov18 07:02

Excellent As always Tlaero
Thanks again for your hard work I will put that to use as soon as I get an opportunity.

Cheers

Sy
Cheers Sy
User avatar
sylakone2
lagoon predator
 
Posts: 224
Joined: Mon, 12Jan09 13:08
Location: Australia, SA
sex: Masculine

Re: A tool to help write "Virtual Date" games

Postby Dakutis » Sun, 12Nov18 08:20

It would be great if there be more tutorials, maybe with more complex things you can create with program or _game.js, _functions.js files.
http://dakutisgames.weebly.com/
User avatar
Dakutis
lagoon predator
 
Posts: 116
Joined: Wed, 12Nov07 14:17
Location: Lithuania, Kaunas
sex: Masculine

Re: A tool to help write "Virtual Date" games

Postby Squeeky » Sun, 12Nov18 09:01

Pardon?

What are you asking?
That tlaero offers tutorials to create templates so you can diversify your gaming strategy more easily?

I'd love that our lovely lady did not have to try to preempt one's potential to imagine. You might care to define more exactly what you mean. That way I am sure there are those who know her work may be able to assist us without putting undue pressure upon her.
Squeaky is clean, I'm just a tad messy!
User avatar
Squeeky
Spirit of the oceans
 
Posts: 4169
Joined: Mon, 08Jan07 00:00
Location: Australia
sex: Masculine

Re: A tool to help write "Virtual Date" games

Postby Dakutis » Sun, 12Nov18 09:17

Squeeky wrote:Pardon?

What are you asking?
That tlaero offers tutorials to create templates so you can diversify your gaming strategy more easily?

I'd love that our lovely lady did not have to try to preempt one's potential to imagine. You might care to define more exactly what you mean. That way I am sure there are those who know her work may be able to assist us without putting undue pressure upon her.


No I don't need templates, maybe more info about functions (something like 'save restore' and etc.) I think there is more functions to use, but such noobs as I don't know about it.
http://dakutisgames.weebly.com/
User avatar
Dakutis
lagoon predator
 
Posts: 116
Joined: Wed, 12Nov07 14:17
Location: Lithuania, Kaunas
sex: Masculine

Re: A tool to help write "Virtual Date" games

Postby tlaero » Sun, 12Nov18 20:58

Tutorial 4 already teaches save and restore, but if you have questions about it, please ask. As for other tutorials, what would you like to know how to do?

Tlaero
User avatar
tlaero
Lady Tlaero, games and coding expert
 
Posts: 1829
Joined: Thu, 09Jun04 23:00
sex: Female

Re: A tool to help write "Virtual Date" games

Postby Squeeky » Mon, 12Nov19 01:01

@Dakutis
I understand. Our Ms tlaero is very generous with her advice, and many of us here are acutely aware that she has acquired a severe affliction, pardon me if I may have seemed a little abrupt with my comment but I had her interests at heart and obviously did not understand your question.

You ask "functions"?
I see tlaero, @ viewtopic.php?p=57454#p57454, allows you quite some scope to build your game database. Would you be looking at being able to write functions to access various data from that? I note that you say that you are not programmed skilled so that the kind of thoughts that you are having?
Squeaky is clean, I'm just a tad messy!
User avatar
Squeeky
Spirit of the oceans
 
Posts: 4169
Joined: Mon, 08Jan07 00:00
Location: Australia
sex: Masculine

Re: A tool to help write "Virtual Date" games

Postby Trucla » Mon, 12Nov19 02:10

Hmm... sorry to interfere, but I think, repeat I think that Dakutis wants to know what each function in the package does and may be how it does.

This reminds me very old times when I started playing with the basic Basic of my Sinclair 1000. But there I had to find things out by myself.

Believe me, Dakutis, it's fantastic discovering and learning just by ourselves. We'll never forget a simple or complicated thing!

Cheers!
Trucla
If a guy is hungry, don't feed him! Just offer a fishing rod and teach him fishing!
User avatar
Trucla
legend of the South Seas
 
Posts: 653
Joined: Thu, 09Jan08 00:00
Location: Helpers World
sex: Masculine

Re: A tool to help write "Virtual Date" games

Postby tlaero » Mon, 12Nov19 07:44

I think a better approach is to think of something you want to do and then ask how to do it. Alternately, read through Life With Keeley and Getting to Know Christine and see how I used the functions, then ask if anything doesn't make sense.

Tlaero
User avatar
tlaero
Lady Tlaero, games and coding expert
 
Posts: 1829
Joined: Thu, 09Jun04 23:00
sex: Female

Re: A tool to help write "Virtual Date" games

Postby Dakutis » Mon, 12Nov19 08:23

I am sorry if you don't understand me. I was writing about: ( gameShowScore(), calcScore(), check() and etc) it is what I know now, but before all tutorials, I didn't know about it.
Ok I again apologize for my stupid questions, I ask you when I will know what I need.
http://dakutisgames.weebly.com/
User avatar
Dakutis
lagoon predator
 
Posts: 116
Joined: Wed, 12Nov07 14:17
Location: Lithuania, Kaunas
sex: Masculine

Re: A tool to help write "Virtual Date" games

Postby Squeeky » Mon, 12Nov19 08:40

Dakutis wrote:I am sorry if you don't understand me. I was writing about: ( gameShowScore(), calcScore(), check() and etc) it is what I know now, but before all tutorials, I didn't know about it.
Ok I again apologize for my stupid questions, I ask you when I will know what I need.

Cross boundaries of languages and somehow assuming someone knows what you are thinking can be a big problem, and so your "stupid questions" are not to be seen as so "stupid" after all.
Squeaky is clean, I'm just a tad messy!
User avatar
Squeeky
Spirit of the oceans
 
Posts: 4169
Joined: Mon, 08Jan07 00:00
Location: Australia
sex: Masculine

Re: A tool to help write "Virtual Date" games

Postby LRM » Mon, 12Nov19 08:41

Dakutis wrote:I am sorry if you don't understand me. I was writing about: ( gameShowScore(), calcScore(), check() and etc) it is what I know now, but before all tutorials, I didn't know about it.
Ok I again apologize for my stupid questions, I ask you when I will know what I need.

Anyone striving to learn cannot ask a stupid question. The language barrier can easily confound the question. I can't speak for tlaero but from what I've seen she'll work tirelessly to find an answer once we all understand the question. Any answer that you feel is not relevant to your question, please restate your question and ask again.
Got Wood?
User avatar
LRM
Moderator
 
Posts: 3061
Joined: Wed, 09Apr22 23:00
Location: Citizen of the world, residing in the USA
sex: Masculine

Re: A tool to help write "Virtual Date" games

Postby Dakutis » Wed, 12Nov21 17:07

How change font size only in showScore, and it's possible to create gameShowScore2, gameShowScore3 and etc? And possible to use to different varPlus/varMinus in one onclick function.
I need: onclick="return varPlus('One',5) and return varMinus('Two',4)" href="home.html">Go home</a></td> (something like that in one line)
http://dakutisgames.weebly.com/
User avatar
Dakutis
lagoon predator
 
Posts: 116
Joined: Wed, 12Nov07 14:17
Location: Lithuania, Kaunas
sex: Masculine

Re: A tool to help write "Virtual Date" games

Postby tlaero » Wed, 12Nov21 19:21

There's no id on the score, so it's not straightforward to change only the score's font size. I see two options:
1) change everything else's size except the score.
2) rewrite outputString to add an id to the score.

Here's how to do the first:
Go into _style.css and add the following:
p#toptext
{
font-size: large;
}

Now the text at the top is large.
Now add another "font-size: large;" to the "table a" section.

At this point the "font-size: medium" in the "p" section only refers to the score. It's kind of ugly, but it works.

Here's option 2. Instead of what you did above, do this:
Add the following function to your _game.js
function outputScoreString(string)
{
document.write("<div align='center'><p id='score'>" + string + "</p></div>");
}

then in gameShowScore, call "outputScoreString" instead of "outputString";

Then in your _style.css add
p#score
{
font-size: small;
}

Now only the score is small.

Does that make sense?
Tlaero
User avatar
tlaero
Lady Tlaero, games and coding expert
 
Posts: 1829
Joined: Thu, 09Jun04 23:00
sex: Female

PreviousNext

Return to The workshop of creators

Who is online

Users browsing this forum: No registered users and 4 guests

eXTReMe Tracker