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

#1181
You can animate the door non-blocking, then block the game manually like this:

Code: ags

  oDoor.SetView(3);
  oDoor.Animate(0, 20, eOnce, eNoBlock, eForwards);
  while (oDoor.Animating == true) {
    // tint the regions here
    Wait(1);
  }


Is that what you mean?
#1182
Sure, just do

  import function SetupDialog(int NumberOfTopics, int TopicProgress);
#1183
Quote from: monkey_05_06 on Fri 10/06/2005 20:58:36
Hmm...Maybe you can't import arrays?  But yet it told you to... :o  I'm not sure what's going on then.  Sorry I couldn't help.

I think you can. Try
  import char name;
so you have

Code: ags

// main script

char name[200];
export name;


Code: ags

// script header

import char name;


And consider Ashen's suggestion.
#1184
Are you sure you have defined the variable ("int distract;") at the very top of the global script, outside of any functions? You cannot export/import local variables.
#1185
gButtons.Controls is an array. To access an element, you have to provide a number:

  GUIControl *Icons[4];
  Icons[2] = gButtons.Controls[7];

I haven't really looked at GarageGothic's code. What are you trying to do?
#1186
Quote from: ilSilente on Sat 11/06/2005 15:30:37
AGS doesn't support pointers to pointers, nor arrays of pointers.

Arrays of pointers are possible:

Code: ags

  Character *thechars[3];
  thechars[1] = cEgo;
  thechars[1].Say("Hello!");
#1187
Please stay on topic, people.
#1188
That works fine already, just like with normal optional parameters:

Code: ags

// main script

function SomeFunction(MyEnum thevar) {
  Display("%d", thevar);
}


Code: ags

// script header

enum MyEnum {
  eFirst = 2, 
  eSecond = 3
};

import function SomeFunction(MyEnum thevar=eSecond);

#1189
QfG 4 1/2 was compiled with AGS version 2.21.162 so I tried every acwin.exe from AGS v2.21 onwards.
#1190
Yeah, I have the same problem with a number of games (on Linux though). Running it in a window or in fullscreen doesn't make a difference.
Trying to run the game with the Windows engine gave me "INI_Lib (E154): Parse Error" if I remember correctly.

If you have Windows, does the game run at all if you start it from the DOS prompt?
#1191
Hm, your second animation reminds me of this.
#1192
Advanced Technical Forum / Re: StrGetCharAt
Thu 09/06/2005 02:52:59
QuoteIt might be useful to have a substring-extracting function aswell, though.

You mean something like that?:

Code: ags

function StrCopyEx(string destination, string source, int start, int length) {
  StrCopy(destination, "");
  int end = start + length;
  while (start < end) {
    char letter = StrGetCharAt(source, start);
    StrFormat(destination, "%s%c", destination, letter);
    start++;
  }
}
#1193
No crashes here with v2.7 or v2.71 Beta.
#1194
Advanced Technical Forum / Re: StrGetCharAt
Wed 08/06/2005 21:08:15
StrFormat(thestring, "%c", thechar);
#1195
Hm, I thought this had been fixed? Or is it unrelated?
#1196
What do you think about renaming the built-in enum names from "Direction" to "AGS_Direction" for example to decrease the likelyhood of them being used as variable names by the user and thus causing conflicts?

And now that we are able to flip dynamic sprites, I think it would be essential to be able to determine if a view frame is flipped or not (via GetGameParameter or whatever).

Oh, and how about DynamicSprite.CreateFromBackground(int background_frame) ?
That would make manipulating the background a lot easier.

Things from the tracker that I think are long overdue:

- Crossfading problem when changing rooms
- Better character collision handling
- topic-option-on/-off/off-forever
- Turning off startup dialog script
- eEventBeginDialog / eEventEndDialog
- Allow "repeatedly_execute" in room scripts
- Crossfade ambient sounds

Edited by Gilbert: Hehe how come you still posted this to the old thread when we're at a new version cycle already, especially when the suggestions are related to feaqtures in the new beta ? :=

Edit by strazer: Whoops! Thanks! ;D
#1197
General Discussion / Re: ASCII table help
Tue 07/06/2005 07:50:46
Quote from: Fuzzpilz on Tue 07/06/2005 07:24:27
I'm not sure about AGS' escape sequence support, but just using "Here followeth character 16: x10" should work also - i.e. backslash, x, character number in hex.

Not possible currently, but suggested.
#1199
General Discussion / Re: Resource hacker
Mon 06/06/2005 08:14:32
Because you can't use hi-color icons this way. See this tracker entry.
#1200
Beta versions only contain the files changed since the last stable version.
You have to extract them over the v2.7 release (it contains accomole.dll).
SMF spam blocked by CleanTalk