Adventure Creator original thread

Tips, techniques and tutorials about creation tools.

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

Postby tlaero » Tue, 11Feb01 08:06

Hey Josefus,

Please post the entire _begin.html file here.

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 Josefus » Tue, 11Feb01 21:22

Hi Tlaero,

Thanks, but i deleted all lines and wrote it new. Than the program started 'ok'.

I think there was notprinted character.

Josefus
User avatar
Josefus
star of the reef
 
Posts: 251
Joined: Tue, 10Nov02 00:00
Location: Berlin
sex: Masculine

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

Postby tlaero » Mon, 11Feb07 00:14

I've posted the version 2.1 update to Adventure creator.
http://rapidshare.com/files/446558498/A ... reator.zip

This version has performance and functionality improvements in Game View. It scrolls better and lets you type letters to scroll to filenames (hit "n" on the keyboard to scroll to the first file that starts with "n" etc).

I also did a major update to the example. I've changed a number of things for the upcoming game that Phreaky and I have been working on, and updated the AdventureCreator example to show how to do them. The main improvements are checkpoints and the ability to do a running score at the bottom.

The code is more complex now, but that's necessary to do this functionality. You no longer define all your variables in _begin.html. Now you do them in _game.js.

Anyone who wants to use AdventureCreator 2.1 should copy the _functions.js from the example. You don't need to change anything in that file, but you need to copy it to your game.

You will need to understand _game.js and make similar changes in your _game.js file. The debug output, for instance, is done differently now, and your old way won't work. If you have trouble understanding the new way, ask here and I'll answer any questions.

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 Josefus » Wed, 11Feb09 21:47

Hi Tlaero

excuse, that i wrote in german. i have insert any new parts in
TimeTramps2-Gilgamesch
1. work with i-frame to manipulate the musikfiles from the game-html-sites.
2. New part for animation without gif-files.

look to this part if Beta2 is online
you can use it for your tool.


Ich arbeite jetzt mit einer 3.Starseite die in einem I-Frame die Seiten lädt und an die Startseite die Musiktitel übergibt.
Die Geräusche werden wie früher bei Tlaero auf den einzelnen Seiten geladen.
Die Musik kann abgestellt werden.
War ne harte Aufgabe....aber hat geklappt.

Die Neuerung Animationen steuern zu können ohne GIF-Files zu verwenden.
Das testen wir aber erst richtig aus.
User avatar
Josefus
star of the reef
 
Posts: 251
Joined: Tue, 10Nov02 00:00
Location: Berlin
sex: Masculine

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

Postby Hey Chief » Thu, 11Feb10 09:27

Thanks Tlaero, I have started using your game creator, but just started will give you feed back later
Hey Chief
lagoon predator
 
Posts: 150
Joined: Thu, 10Dec16 00:00
Location: San Jose, CA, USA

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

Postby Sylakone » Sun, 11Mar13 03:32

Thanks Tlaero

I have have been using your adventure creator for my new game unfortuantley my JS and Html Knowledge and experience are quite limited but I have gotten quite far the only problem is I am stuck with at the moment. I am trying to get a single check file to check 3 different variables for one click this is what I tried probably looks ike a mess but I could not work out a better way to do it I did try using 3 differnet files but that does not seem to work either and seems cumbersum here is the scrïpt I tried



Fiona







function check()
{
var val = readvar("gclean");
if (val < 1)
var val = readVar("morning");
if (val > 0)
var val = readvar("fi_workout");
if (val > 0)
window.location = "fi_gym2_1.html";
else
window.location = "gym2_1.html";

else
window.location = "gym2_1.html";
else
window.location = "map1_1_1.html";
}

check();





unfortunatley the formatting in the scrïpt is not coming through on the forum I will pm it to you

thanks for you help
Sylakone
great white shark
 
Posts: 27
Joined: Mon, 10Nov01 00:00
Location: Australia

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

Postby tlaero » Sun, 11Mar13 21:08

You've got the the right idea. You just need to add { brackets } and use different names for each of the variables.

function check()
{
var val1 = readVar("gclean");
if (val1 < 1)
{
var val2 = readVar("morning");
if (val2 > 0)
{
var val3 = readVar("fi_workout");
if (val3 > 0)
{
window.location = "fi_gym2_1.html";
}
else
{
window.location = "gym2_1.html";
}
}
else
{
window.location = "gym2_1.html";
}
}
else
{
window.location = "map1_1_1.html";
}
}


Let me know if that works.
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, 11Mar13 21:22

Personally, I'd do it like this, though:

function check()
{
var clean = readVar("gclean");
var morning = readVar("morning");
var workout = readVar("workout");

if (clean == 0)
{
if (morning > 0)
{
if (workout > 0)
{
window.location = "fi_gym2_1.html";
}
else
{
window.location = "gym2_1.html";
}
}
else
{
window.location = "gym2_1.html";
}
}
else
{
window.location = "map1_1_1.html";
}

return false;
}

Same thing, only I find that easier to read.

Actually, looking at your logic, this could be simplified more.

function check()
{
var clean = readVar("gclean");
var morning = readVar("morning");
var workout = readVar("workout");

if (clean == 0)
{
if (morning > 0 && workout > 0)
{
window.location = "fi_gym2_1.html";
}
else
{
window.location = "gym2_1.html";
}
}
else
{
window.location = "map1_1_1.html";
}

return false;
}


(Note that the return false is to work around one of the many bugs in Firefox. You don't really need it here, but you might as well get in the habit of doing it. It'll save you pain in the future.)

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 Sylakone » Mon, 11Mar14 03:03

Hi Tlaero

Thanks heaps unfortunately all three come back with black screen they do not seem to be jumping to the html targets I don't get it it is frustrating I can send you the whole game so far if that would help maybe one of the variables is causing the issue I don't know either way thanks for your fast response I will keep at it.
Sylakone
great white shark
 
Posts: 27
Joined: Mon, 10Nov01 00:00
Location: Australia

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

Postby tlaero » Mon, 11Mar14 10:38

Post a link to a place where I can download it and I'd be happy to take a look.

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 Sylakone » Wed, 11Mar16 11:01

Again thanks for your help.
Sylakone
great white shark
 
Posts: 27
Joined: Mon, 10Nov01 00:00
Location: Australia

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

Postby tlaero » Thu, 11Mar17 08:21

I worked with Sylakone offline and we got this working. The biggest problem was that the function is "readVar" but there were places where the code said "readvar" (lowercase v) instead. Javascrïpt is case sensitive, so that one letter is a big deal. I made it worse by giving examples with lower case v's in them. That's what I get for coding in a forum rather than Visual Studio. I went back and fixed the examples so that anyone reading this in the future won't be confused.

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 smokindavis » Sun, 11Apr03 05:06

I don't have any experience with creating models or games. But I do have writing experience and would like to start creating games. What programs do I need and where should I start?
smokindavis
great white shark
 
Posts: 30
Joined: Sat, 10Feb20 00:00

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

Postby Sylakone » Sun, 11Apr03 07:12

Hi smokindavis I would recommend getting hold of Poser from Smith Micro for your 3d models. Visit a site called renderosity they sell lots of addons for the models like clothes morphs and so on. They are a very good source of pretty much anything you need for poser and various other 3d programs. For the more erotic type content visit renderotica. That should give you enough to start with. Good luck, if you need any help with the graphics let me know I can help you.
Sylakone
great white shark
 
Posts: 27
Joined: Mon, 10Nov01 00:00
Location: Australia

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

Postby tlaero » Sun, 11Apr03 08:45

Rather than Poser, I suggest Daz3d. I bought Poser first but prefer Daz. I think the interface is better. And, Daz is free. They know that once you get started, you spend lots of money on models and clothes for models, etc....

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 2 guests

eXTReMe Tracker