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 - strazer

#302
Have you installed the latest graphics card drivers? Latest DirectX?
#303
Problems playing your own games?
What's the problem? What error message(s) do you get?
Which version of AGS were the games made with?

Problems playing other people's games? Which ones?
What's the problem? Any error messages?

Please provide more info next time.
#304
Yes, but some kind of warning wouldn't be amiss.
#307
Seems to be the same problem then:

Quote from: strazer on Tue 29/08/2006 15:35:58If you define variables in the script header, separate variables are created for the global script and each room script. Changing the variable's value from within a room script thus doesn't affect any of the others.

To create a global variable that you can use outside the global script, you have to define it in the global script, export it and then import it into the script header:

Code: ags

// global script

int catStat;
export catStat;


Code: ags

// main script header

import int catStat;

#308
General Discussion / Re: Firefox messed up
Sat 02/09/2006 10:50:34
Before reinstalling, try a clean new profile. Go to C:/Windows/Application Data/Mozilla/Firefox/Profiles and move away the folder in there, then start Firefox.
#309
In Sam & Max at the carnival.
#310
What template are you talking about? Link?
Isn't there a thread for that template where you can ask? If not, have you tried contacting the template's author directly?

And please tell us what code you're trying to use exactly, and where you have put it.
#311
You're welcome! :)
#312
Just as I thought. :)
If you define variables in the script header, separate variables are created for the global script and each room script. Changing the variable's value from within a room script thus doesn't affect any of the others.

To create a global variable that you can use outside the global script, you have to define it in the global script, export it and then import it into the script header:

Code: ags

// global script

int catStat;
export catStat;


Code: ags

// main script header

import int catStat;
#313
Where and how have you defined these variables?
#314
http://www.adventuregamestudio.co.uk/tracker.php?action=detail&id=349

Quote from: Radiant
No, because then it would be ambiguous what you actually clicked on: if two objects/characters/room hotspots were adjacent, and your cursor was partially over both of them, which of them are you clicking on?
#315
Quote from: jet on Mon 28/08/2006 22:52:38I'm sure that the walkthrough page can be fixed or maybe the AGS wiki can be used.

Yes, there's already a walkthroughs category in the AGS Wiki and everybody is welcome to add to it.
#316
Yes, Lip-sync for LucasArts speech would be nice.
And although it looks nice, I don't see the benefit of supporting Papagaya too, since Pamela is also open-source.

Misj', there's a Linux binary, so that's a plus for me, but could you tell us more about its advantages aside from its visual appeal?
#317
For example:

Code: ags

// main global script

int MyTimer = -1; // define timer variable, initially off
export MyTimer; // export variable for use in room scripts

function repeatedly_execute() { // gets executed every game loop

  if (MyTimer > 0) { // if timer is on
    MyTimer--; // decrease timer by 1 game loop
    YourGuiLabel.Text = String.Format("%d", MyTimer); // display its value on your gui label
  }
  else if (MyTimer == 0) { // aka IsTimerExpired

    // do stuff

    MyTimer = -1; // turn timer off
  }

}


Code: ags

// main script header

import int MyTimer; // import variable for use in room scripts


Code: ags

// some script

  MyTimer = 400; // aka SetTimer; 40 game loops = 1 second

#318
SSH, I think he's talking about the built-in timers.

There's no GetTimer function, so you need to script the timer yourself using variables if you want to access its current value.
#319
AGS Games in Production / Re: Harry the hippie
Thu 24/08/2006 20:22:04
Quote from: mchammer on Thu 24/08/2006 19:47:39*The game uses now Strazer's Character Control Module which
  makes the game world much more believable.

Yay! I'm glad you still use it. I'm interested in seeing it being used in a real game. Don't hesitate to contact me if you run into any issues. Nice game, btw. :)
#320
Don't. We were all beginners at some point. :)

Does that mean your problem is solved now?
SMF spam blocked by CleanTalk