Adventure Creator original thread

Tips, techniques and tutorials about creation tools.

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

Postby Dakutis » Thu, 12Nov22 08:55

tlaero wrote:I've made a number of these games and they've been fairly highly regarded. In my opinion, players care about the following things in priority order.
1) Great sex scenes
2) A good challenge
3) Good artwork
4) Interesting characters
5) A believable story
6) Not needing to start over when they make a mistake.
...
...
...
1000) Where the score is on the screen.

I think your time would be MUCH better spent focusing on items 1-5 than trying to move the score.

Tlaero


What I want to create, these scores play a big role in the game, there will be your stats, the higher your stats - the more things you can to do. Now I focusing on "game engine" , If I can do is what I had planned then its good, later then I can focus on your 1-5, but if I can't do that, then I don't need anything more(then the project will be closed). So now I ask about some functions.
It's not so important where the stats will be, but it has to be a clear spot. In most games stats are at the top, but here's the problem with the space. So I was thinking of how to do better here.
Thanks Tlaero for answers I already try everything, ant it is working :) but when I use it I understand that I need more advanced functions :)
Squeeky thank you too, Math.round(x) works fine.
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 » Thu, 12Nov22 11:37

You need a range of calculations, is that right?
What further calculations do you think that you'd require?
They wouldn't be hard to write in javascript, particularly if they require only the 4 basic arithmetical operations, just a matter of controlling access to your variables.

Do I believe that there is still an issue about providing those images somewhere on the page but image quality is still a concern?

Would you have concern with having a good quality image being overwritten with text? Like:
----------------------------------
|.. Me........All this space..|
|..70.........is image .......|
|..You.......... of some ....|
|..24......... kind .......... |
---------------------------------
The words and numbers "Me, 70, You and 24" would have the image as a background. That text can be applied anywhere by adjusting (x,y) variables as can the specific text.

The concept uses a javascript library (JVG - Javascript Vector Graphics) written largely by a German, Walter Zorn, who recently sadly departed us. I don't believe that his legacy is widely known but I use it often in a different forum. If you like I can discuss its potential with tlaero. While it won't clash with her AdventureCreator, that I can see, there still might be concerns with running both together, but I doubt it.

I shall be around for part of tomorrow but be absent for about 3 days. I suggest that you leave me a PM if this appeals to you - tell me about any functions too. Certainly share them with tlaero, she may probably handle them more efficiently than me; but I would need to know you requirements so as to build a framework initially, and then advise upon manipulating its output.
[Obviously I could not call upon my function take() if we wanted to use tlaero's function minus() even if they were coded exact the same].


For more on Walter Zorn:
https://sites.google.com/a/balancegames.org/zorn/
http://web.archive.org/web/200801090344 ... rzorn.com/ ..... this is where my interest lays
http://web.archive.org/web/200801011118 ... eindex.htm
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 » Thu, 12Nov22 14:54

The biggest problem to me is that I don't fit in 1024x768 resolution. I work on 1920x1080 resolution monitor so didn't know how bad it is. Now I changed resolution to 1024x768 and see that I do not fit to the screen :( :??: even my demo Aaron life don't fit if there is more lines of text. In my project (this is not about Aaron life) I need more spaces.
What you suggest with background, I already try, its not working with AdventureCreator(at least for me).
What about calculations, its not complicated but some will be very long :) a lot of "if" i need. The game have days(like day1.day2.3.4.5.6.7.8...day20.) and every day you can go somethere, like shop, work and etc, so I need to write function whom check what today day and goes to that home.html files (like day is 12 then you go to home12day.html). Or I need write shop, work html files for every day (then there will be a lot of files :) ) So with 20 days there is lot of "if" in one function :)
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 » Thu, 12Nov22 20:46

Most rpgs don't have the stats on the screen all the time. Usually you go to a stats page to see them. What if next to save and restore you had a "stats" link that took you to a page that was all stats. That way you'd have room. It would take a few new functions, but I could help you write them.

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 jfrancois323 » Fri, 12Nov23 04:15

i got a suggestion, i don't know if it's possible, why not putting a link who bring the stats. pushing the link again make them disappear.

if you really want them to appear, it could be a possible solution.
jfrancois323
star of the reef
 
Posts: 486
Joined: Mon, 11May02 04:56

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

Postby Dakutis » Fri, 12Nov23 06:53

jfrancois323 wrote:i got a suggestion, i don't know if it's possible, why not putting a link who bring the stats. pushing the link again make them disappear.

if you really want them to appear, it could be a possible solution.


It could be a good solution, only if it is work with AdventureCreator. Tlaero I need your opinions. I thing like it will be popup menu where will be all stats (scores) it is possible and if this work with your program?

edited:
I already done it, but is not work with AdventureCreator, I get eror message: "Index was outside the bounds of the array."
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 » Fri, 12Nov23 22:50

Post what you did and I'll help you debug it. Is having the text pop up really better than going to a stat page like I suggested?

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 » Sat, 12Nov24 09:03

tlaero wrote:Post what you did and I'll help you debug it. Is having the text pop up really better than going to a stat page like I suggested?

Tlaero



In *.html file:

<body>
<div class="center">
<ul>
<li>
<p id="toptext">text text text text text text.</p>
<ul>
<li><a href=""><script type="text/javascript">showScore();debug();</script></a>
</ul>
</li>

<img id="image" alt="" src="images/home01.jpg" usemap="#Map" />
</div>

in _style.css:

.center ul {list-style:none;margin:0; padding:0}
.center li {margin-left:auto; margin-right:auto;width:700px; background-color:#999999; text-align:center;
position:relative; height:30px; line-height:30px;}
.center li ul li {float:none; width:700px; height:75px; text-align:left; border:1px solid black;}
.center a {text-decoration:none; color:white;}
.center li ul {position:absolute; top:30px; left:0; visibility:hidden;}
.center li:hover ul {visibility:visible;}
.center li:hover {background-color:#555555;}

So now when you point with mouse on text in top of screen then popup menu with all scores and Save/Restore. When I tryed open with AC I get error and if I save file then all <ul> and <li> from file deleted.
Simples way for me was to move (<script type="text/javascript">showScore();debug();</script>) to the top above text. So this not take more space then original.
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 » Sat, 12Nov24 19:42

That's definitely not going to work. The first time you edit a file in AdventureCreator, it's going to overwrite all that extra html. Why is having the score pop up better than hopping to a stats page to see it?

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 » Sat, 12Nov24 20:11

tlaero wrote:That's definitely not going to work. The first time you edit a file in AdventureCreator, it's going to overwrite all that extra html. Why is having the score pop up better than hopping to a stats page to see it?

Tlaero


Other way how to do that I don't know, so I use simples way, to show scores in top of page, above text. It's not so very important where it be, important is that you can see 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 » Sat, 12Nov24 20:34

I've uploaded a new version of Adventure Creator (3.1).
https://rapidshare.com/files/945889313/ ... reator.zip

This does a few new things. First, for Dakutis, I've added the ability to put the score at the top. You'll need to update both AdventureCreator.exe and the template, and you'll need one of the _functions.js from the tutorials or the example. Open your game in AdventureCreator and do "UpdateAll" to update it to the new template.

Then, if you name your function gameShowTopScore instead of gameShowScore, it will put the score at the top. If you want to have both, you can do that too.
I've also added some new functions. Instead of "outputString" you can now call "outputScoreString" or "outputTopScoreString." These new functions add a css id (score and topscore) so you can format the scores differently than the text.

I also added the ability to go to a page and return to where you were (useful for a stats page). And I added the ability to have a page automatically advance to another after so many milliseconds. Ask if you want to do those things.

Finally, I changed the program. "Dump Game View" now dumps the entire game view including the onclicks and page links. "Dump Game Text" does what Dump Game View used to do (it just dumps the text in the game).

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 » Sun, 12Nov25 08:45

tlaero wrote:I've uploaded a new version of Adventure Creator (3.1).
https://rapidshare.com/files/945889313/ ... reator.zip

This does a few new things. First, for Dakutis, I've added the ability to put the score at the top. You'll need to update both AdventureCreator.exe and the template, and you'll need one of the _functions.js from the tutorials or the example. Open your game in AdventureCreator and do "UpdateAll" to update it to the new template.

Then, if you name your function gameShowTopScore instead of gameShowScore, it will put the score at the top. If you want to have both, you can do that too.
I've also added some new functions. Instead of "outputString" you can now call "outputScoreString" or "outputTopScoreString." These new functions add a css id (score and topscore) so you can format the scores differently than the text.

I also added the ability to go to a page and return to where you were (useful for a stats page). And I added the ability to have a page automatically advance to another after so many milliseconds. Ask if you want to do those things.

Finally, I changed the program. "Dump Game View" now dumps the entire game view including the onclicks and page links. "Dump Game Text" does what Dump Game View used to do (it just dumps the text in the game).

Tlaero


You do it for me? Thanks Tlaero. It very helps me. When I do "UpdateAll" - in one file I miss 1 table entries (there was 4 table entries).
About "outputTopScoreString." - topscore write in _style.css ?
And maybe you can write more about "I also added the ability to go to a page and return to where you were (useful for a stats page). And I added the ability to have a page automatically advance to another after so many milliseconds. "
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 Dakutis » Fri, 12Nov30 10:42

Tlaero where are you? [img]images/icones/icon12.gif[/img]
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 » Sat, 12Dec01 02:56

Busy. What do you need help with?

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 » Sat, 12Dec01 08:51

tlaero wrote:Busy. What do you need help with?

Tlaero


Sorry, that I disturb you.
http://dakutisgames.weebly.com/
User avatar
Dakutis
lagoon predator
 
Posts: 116
Joined: Wed, 12Nov07 14:17
Location: Lithuania, Kaunas
sex: Masculine

PreviousNext

Return to The workshop of creators

Who is online

Users browsing this forum: No registered users and 9 guests

eXTReMe Tracker