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

#6441
Hints & Tips / Re: udoiana raunes
Mon 17/05/2004 10:18:16
It's not so popular here because it's not an AGS game, I think you may find more help if you ask it in their board.
#6442
* Gilbot V7000a walks near Vel like a Xmas ghost!

But then, LQ is valuable not just because it's the first "complete" AGS game but it's actually teh first "complete" AC game.
#6443
Please be more descriptive, what script/code/interactions/etc. did you actually used? You may also upload your sample game if you want.
#6444
Advanced Technical Forum / Re: 3D array
Fri 14/05/2004 11:47:55
Yeah  it's always important to remember that when you declare an array, the index runs from 0 to size - 1.

I think this info should be put somewhere in the sticky threads of the Beg. tech. forum :) (if it wasn't done so).
#6445
* Gilbot V7000a was actually planning on some game with similar features, but as he didn't make any games (yet), so...
#6446
Heh actually what I meaned was that 7 frames is considered A LOT already, and you wrote "only".

I like your sprite and teh animation is very smooth. :D
#6447
only?2? 7 frames?
#6448
Advanced Technical Forum / Re: 3D array
Fri 14/05/2004 06:22:26
Maybe I'll illustrate this further with pictures:
Teh original array:

when hashed into a 1-D array:


so for example the [1][3][2]-th element would be the (5 * 20 + 3 * 5 + 2)-th (same formula expanded, see 5*4=20) element in the 1D-array.


For the declaration part, like scorpion mentioned, you can't declare them all at once "on-the-fly" currently, if you really need to declare a large array with varioyus data, you may try using some external files so the game will load its content to fill in the array(s), see the file related functions of the manual.
#6449
Advanced Technical Forum / Re: 3D array
Fri 14/05/2004 04:34:00
It's just simple maths.

Say if you want to make a (3 * 4 * 5) array, there will be a total of (3 * 4 * 5) = 60 elements. So you need to define:

int blah[60];

Generally if you want the [ a ][ b ][ c ]-th element, you may refer it to
((a*4 +b)*5 + c)-th element. (note that a, b, c starts from 0).

For example, if you wantÃ,  [ 1 ][ 3 ][ 2 ]-th element, you just calculate index= (1*4 + 3)*5 + 2 = 37, so the required entry is blah[37].

You can define a function to calculate the index, example:
function CalIndex(a,b,c){
Ã,  return ((((a*4)+b)*5)+c);
}


To calculate back the "a" "b" "c" indices (say from a single index d), you can use the following calculations (note:division in ags is integer division):
a = d/(4 * 5);
b = (d/5)%4;Ã,  Ã,  //we can use mod now for V2.61+
c = (d%(4 * 5))%5;

You can write functions for them in similar way.

Note that the above calculations involve using the % (mod) operator, which is only available in V2.61+ (not yet official released), if you want to have them without using mod, you can do:

a = d/(4 * 5);
b = (d/5) - (a * 4);
c = (d - (a *4 * 5)) - (b * 5);
#6450




I'm just too lazy to find out the correct height (actually I DON'T know my exact height :P ), so I never care about it.
#6451
General Discussion / Re: The CRITICISM thread
Fri 14/05/2004 02:31:49
I hate someone who have time to make ever-changing animated rogers as his avatar.
#6452
hehe yeah, happened to me too. I once spent nearly an hour to track down my mistakes on braces.
#6453
Advanced Technical Forum / Re: Square root?
Fri 14/05/2004 02:17:20
If you're still looking for square roots, read this.
#6454
Not many I guess, but there're still some.

At least I'll be one who will use DOS version whenever possible.
#6455
General Discussion / Re: The CRITICISM thread
Thu 13/05/2004 08:41:42
And I'd rather like Las to have a treatment in a ZUMEX machine.
#6456
General Discussion / Re: Javascript help
Thu 13/05/2004 08:37:54
Well I just like to do this manually, and this is VERY easy using Opera. ;D
#6457
if (character[GetPlayerCharacter()].inv[4] > 0) {
ObjectOn(4);
} else {
ObjectOn(4);
ObjectOn(1);
}
#6458
I think it may be dependent on the sound card drivers, but you're not supposed to be playing any non-game sound while an ags game is running anyway.
#6459
Actually I'd rather see the demo quest simple, stating clearly how things can be archieved, blah bla bla, etc. If it's made into a "full-size game" with eyecandies, etc, it's quite difficult for newbies to focus on different parts of the techniques used.
#6460
Looks great as before, but I think you may change the bg from black to something else, as it now clashes with the character, making it so dark to see details (using this crap monitor here at least), and the animations are quite fast for me to make out details too.
SMF spam blocked by CleanTalk