Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - spook1

#181
Beginners' Technical Questions / Re:creditz?
Fri 19/03/2004 17:35:15

Trying your code I get an error:

parse error in expr near ++

and also the message that color is already defined ...

ichanged the variable into "colour" which solved the second error. Why is ++currentID not working properly?
P.S. I must warn you that I am definitely in a learnign phase, so my questions may seem silly from time tot time ;-(

kind regards, Martijn
#182
OK, but my next problem is: I cannot perform any action while animation is running at the same time.

How can I start an animation but stop it (e.g. by obtaining an invetory) before it is finished?
#183
In my game at e certain point you find a pot of boiling substance. you have to take it of the fire, before it explodes.

I cannot script this.

If I do not use animateobjectex(..,..,..,..,..,1); to block the animation I cannot see the animation.

When I do block it, it plays all the way down to the explosion.

is there a a way to stop an animation halfway??

here is what i tried:

   if(viewnumber == 1){
//Display("startniceboiling");
       Wait(60);
       i=1;
       while(i<2){
       SetObjectView(0,10);
       AnimateObjectEx(0,0,10,0,0,1);  // nice boiling
       i++;
       }
       Display("Nice boiling starmix is ready!! You are wonderfull.");
      }
      if(viewnumber == 2){
//Display("startexplosion");
       i=1;
       SetObjectView(0,10);
//            while(i<150){
              AnimateObjectEx(0,1,10,0,0,1);
//          i++;
//          Wait(1);
//       }
       
           Display("Game over");
       QuitGame(0);
      }   

thanks in advance
#184
Works great!

I have it implemented in a test-game and drawing lines works just perfect.

perfect script!! And well written and easy to understand. Great job!
#185
Hi there, again i have a question for dieas on my electricity game.

I try to preent the situation where I have an electric circuit board and plug in the componenets at obvious places. Instead I would prefer a workspace in which I can place my components at random places and connect them by flexible wires. Like the cords in "The incredible machine".
I would like to point out the starting point for a linem(click) and then draw the line to its end (click again). By checking the mouse.x and mouse.y at the clicks I can check if the wires is actually connected to a component. if not, the drawing will not take place.

I am thinking about the rawdraw functions, but I am not sure if it will work. I would have to draw the complete wiring at each cycle I am afraid.

can anyone refelct on this one?
I am not such a fast programmer that I have tried it already. If you tell me that it is not likely to succeed, i will look for other solutions..

Martijn
#186
Advanced Technical Forum / Re:changing colors
Sun 14/03/2004 19:06:43
I have different views for each wire now. That is, three pictures for each view, a blue, red and yellow one.
I plan to start the view, in still mode at a different picture.

How can i apply loops?
#187
Advanced Technical Forum / changing colors
Sun 14/03/2004 15:04:06
For my teaching game on electricity, i want to create wiring that colors as the surrent through the wires increaes.
low current: blue wires, higher current: red wires and very high current: yellow wires.
I am realizing this by making each wire an object, and a accompanying view.
As the current increaes the view moves to the corresponding view-number, to refelct the required color.

my question is: can such a thing easier be done using setpalrbg  or soemthing like it?

Kind regards,
martijn
#188
Does anyone have experience in devloping a game in an online-teameffort?
Starting up one I stumble over quite some issues. What is the most effective way to share templates, do I have to centralize a palette? What is the most appropriate program? Paint? Is on any windows computer (also in our school) but is is pixel drawer.
Any sharing of experiences iswelcome.

cheers, martijn
#189
Once, over a year ago, I remeber having seen a site where the creation of a character is explained.
For my school project I am looking for a tutorial on character creation/design

Any suggestions? Thanx in advance

Edit: scuse me, I see the tutorials thread (duh, already?) and there is the elaborate answer I asked for. Sorry for spoiling the forum with stupidity. next time better ...
#190
I am creating an ags game in my school (i am a physics teacher ;-) together with the students (15, 16 years old).
In order to be able to edit each others drawings I am looking for a good drawing program, that I can instal on school computers (so no illegal copies e.g. are allowed)
Does anyone knwo of such a program? Which is good to use for AGS drawing?

I am curious to hear from you,

martijn
#191
Beginners' Technical Questions / Re:creditz?
Mon 08/03/2004 15:19:21
Thanks a lot. it worked.

I have a textscrolling by now. I have to add extra lines between two following lines to prevent text from being printed over a former line.
can i adjust the spacing bwteen two following lines?
I have added extra lines everywhere now, and by adjusting EmpyLineHeight I can adjsut linespacing.

Is there a way to add extra lines  at a later stage?
Or do I have to change all nubering when I decide to add an extra paragaph?

kind regards,
Martijn
#192
Beginners' Technical Questions / Re:creditz?
Sat 06/03/2004 08:39:15
okidoki:

Wait(50);

SetEmptyLineHeight(40);
ScrollCredits (1,0, 400, -400, 1, 10, 2);

SetCredit (1,"Het was in het jaar 2145 dat de eerste kolonie ", 12,0,0,10,0);
SetCredit (2,"", 12,0,0,10,0);  
SetCredit (3,"buiten ons zonnestelsel werd gesticht in Quopurs.", 12,0,0,10,0);

SetCredit (5,"Niet lang hierna kwamen de oorspronkelijke bewoners ", 12,0,0,10,0);
SetCredit (6,"", 12,0,0,10,0);
SetCredit (7,"van het zonnestelsel Quopurs in opstand", 12,0,0,10,0);

SetCredit (9,"Na een oorlog die honderd jaar duurt komen de ", 15,0,0,10,0);
SetCredit (10,"", 12,0,0,10,0);
SetCredit (11,"aardbewoners als winnaar uit de strijd", 12,0,0,10,0);

SetCredit (12, "In deze honderd jaar zijn zij echter  vervreemd  ", 15,0,0,10,0);
SetCredit (13,"", 12,0,0,10,0);
SetCredit (14,"van de aardbewoners,", 12,0,0,10,0);

SetCredit (16, "de kinderen die in Quopurs zijn opgegroeid", 15,0,0,50,0);
SetCredit (17,"", 12,0,0,10,0);
SetCredit (18,"kennen de aardbewoners alleen uit verhalen.", 12,0,0,10,0);

SetCredit (20, "en de aardbewoners en Quopurs zijn als ", 15,0,0,50,0);
SetCredit (21,"", 12,0,0,10,0);
SetCredit (22,"vreemden, aliens, voor elkaar geworden....", 12,0,0,10,0);

SetCredit (24, "Wanneer er van Aarde een schip landt in Quopur,  ", 15,0,0,50,0);
SetCredit (25,"", 12,0,0,10,0);
SetCredit (26,"met de wens om grondstoffen naar Aarde te verschepen ", 12,0,0,10,0);
SetCredit (27,"", 12,0,0,10,0);
SetCredit (28," ontstaat er een nieuwe strijd.",12,0,0,10,0);

SetCredit (30, "De technisch superieure aardbewonders leggen het af ", 15,0,0,50,0);

SetCredit (32,"tegen de Quopurs die hun zonnestelsel kennen als hun broekzak", 12,0,0,10,0);

SetCredit (34, "De Quopurs ontbranden in een furie wanneer Aarde meer troepen ", 15,0,0,50,0);
SetCredit (35,"", 12,0,0,10,0);
SetCredit (36,"stuurt en verleggen het strijdtoneel naar het zonnestelsel van de Aarde", 12,0,0,10,0);

SetCredit (38, "Voor Aarde is dit een benarde situatie. gelukkig heeft ze een troef in handen:", 15,0,0,50,0);

SetCredit (40, "De infiltrante Volta, bevindt zich namens Aarde aan boord van een van de schepen van de Quopurs", 15,0,0,50,0);
SetCredit (41,"", 12,0,0,10,0);
SetCreditImage(43, 6, 1, 1, 1); //picture Volta in creditz
SetCredit (45, "Haar opdracht zal haar spoedig bekend gemaakt worden. Voorlopig luidt haar missie:",15,0,0,50,0);

#193
Beginners' Technical Questions / creditz?
Fri 05/03/2004 20:39:37
I could not find this item, sorry if I overlooked anything.

I make an intro to my game SpaceSpy, using the creditz plugin.
The intro is quite a story, and when the first line reaches the top of the screen the creditz are turned of, instead of riollingon and showing the bottom lines of the intro-stry.
Any suggestions are very welcome,
kind regards, Martin Koops
#194
Since I am still involved in creating a physics learning game, I am looking into scripting simulated movement.
I have some questions before I start experimenting:

1. Does anyone know if there are scripts available of successfully implemented simulations?
2. Any suggestions on how to detect the start of a movement? E.g. a car is pushed, how do I porgram this action?
3. I think the simulation of movement could quite easily be simulated by something like:

while location <500{
timestep = 1;
location = x;
velocity = v;
acceleration = a;

v = v+ a* timestep;
location = x+ v*timestep
timestep ++

moveobject to location}

Am I right or this is a stupid approach?

4. can I use the finite state machine plugin in a really smart way in simulating this kind things?

Thanks in advance for sparring..

martijn
#195
Thanks for answering.
My question was: Can I use one function on many hotspots by treating the hotspots as variables?
Function_hotspot_a,where a is a variable.
Your suggestion to copy the function onto all hotspotsindicates that i cannot use a loop to pass all hotspotsand see if thereis anything to do.
Kind regards,

Martijn
#196
In my game I call a function to place objects at certain hotspots.
For each hotspot I have to put in the code.
is there a way to program the sequence in a more legant way, using an if-then loop e.g.

Something like:

if (i =< 10) {


function hotspoti_a() {
//   script for hotspot1: Use inventory on hotspot
 if (character[EGO].activeinv == 1) {

   LoseInventory(character[EGO].activeinv);
   SetCursorMode(2);
   RawDrawImage (87, 89, 3);  //draws picture from slot 3 at coordinates 72,172
   R1 = 100;         // weerstand van 100 Ohm geplaatst;
   
 }

 if (character[EGO].activeinv ==2 ) {
   LoseInventory(character[EGO].activeinv);    
   SetCursorMode(2);      
   RawDrawImage (93, 90, 5);
   R1 = 0;         // Draad geplaatst geplaatst;
 }
DisableHotspot(i);
}

}

This would help me a lot in writing compact code, instead of repeating thsi code for each hotspot.

Kind regards,
Martijn
#197
Thank for the fast relpy.
is flash able to do adventure games? Is it much more work than ags? Is it easy to learn?

Martijn
#198
Hi all,

This topic to ask for your opinion on ag editors.

I am conducting a research into game-based learning at University and for that purpose I am
looking for an editor. Currently i am comparing different platforms.

Last year i have created a learning game for electricity in AGS, and for a pilot it turned out very well.
Off course it is not really professional but it is functional.
Now, for the rest of the research I am making up my mind: stay with AGS, or is there a better (maybe not free) editor available?
For instance, a game that can run directly from the web would be easy for e-learning purposes (you can skip the installation part)
Furthermore, the effort to learn to the tool should be minimal (which pleas for AGS) etc.

Can you help me making a wise decision?

Kind regards and thanks in advance for the help.

martijn

#199
Hi there,

A friend of mine created a plugin for me that solves a set of linear equations.
The way to use it is as follows:

Suppose you need to the solve the next (simple) set of equations:
//
//  x + 2y = 3
// 4x + 5y = 6

You use the plugin as follows:

CreateMatrix(2)
SetScaleFactor(1)
SetMatrixValue(1, 1, 1)
SetMatrixValue(1, 2, 2);
SetMatrixValue(2, 1, 4);
SetMatrixValue(2, 2, 5);
SetVectorValue(1, 3);
SetVectorValue(2, 6);
Solve()
GetValue(1)
GetValue(2)

Where value(1) is x and value(2) is y.

We like to contribute this plugin to the community (finally doing something back for the wonderful platform!).
how do I proceed? I do not know C++ nor do I have a compiler to add the instructions.
The plugin can be found at http://ags.drkoops.nl

can anyone help me putting this on the plugin site of ags?

kind regards,

martijn
#200
Hi Ratracer,

The game is translated, but still a few dutch legacy phrases exist.
When i have some spare time I will look into it.
I tried to play the version that is available form http://ags.drkoops.nl and did not find any problems with the elevator part.
After youhave been upstairs in the dark, the next assignement is to create a light with the electrokit. you need the man in the lobby to give you a lamp...

If you have any more questions please let me know.
P.S. In the site is also a very simple elektrokit simulator available. it uses a self made plugin that solves a set of linear equations. I plan to figure out how to insert the explanation for the plugin and then  contribute it to the community.

kind regards,

martijn
SMF spam blocked by CleanTalk