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

#6221
I'll say 'NO', as it's not directly related to AGS, or much about the development of skills related to AGS, moreover that'll be too much work, compared to the archievement which may not be quitr meaningful to many people here.
I think there're many more communities/sites/whatever more suitable for this kind of thing, but not here at the moment.
Moreover, the period for AGS website design had past already.
#6222
Hmmm change it to a popup modal? (this way you don't need to call the pause and unpause game yourself)

The reason the game won't respond to key press while paused is due to this line:
  if (IsGamePaused() == 1) keycode=0;  // game paused, so don't react to keypresses

in the default global script code of the function on_key_press(), if you remove it, the game will respond to key presses during game pause. If you ONLY want the keys to be recognized while that GUUI's on and the game's pause, you can change that line to stuff like:

  if ((IsGamePaused() == 1)&&(IsGuiOn(BLAH)==0)) keycode=0;  // game paused and GUI BLAH is not on, so don't react to keypresses
#6223
Hmm can you upload the room files in question for us to check?
#6224
Download failed for me...
#6225
That means, you're not adding the content to be added to on_key_press() in the on_key_press() function already defined, but started making a new one.

Just move the content to be added to that function into the ORIGINAL function and delete your new definition of it.
#6226
Critics' Lounge / Re: Bar background!
Mon 05/07/2004 07:44:45
Quote from: viktor on Mon 05/07/2004 07:38:50
and the table looks kinda wrong. If there was an explosin in the position that you markes then the leg closset to the table should be broken, not the one farthest from it.

Heh probably the explosion was so fierce so the table got thrown flying and swirled for some circles before landing again. ;D
But anyway, my comments are similar to others, but only one thing that got me thinking was the "pools" of darker colour in the middle of the ground and between the cop's legs, what were these supposed to be actually? Maybe the cop wet himself before he died?
#6227
Quote from: Hollister Man on Mon 05/07/2004 03:29:54
Ã,  BTW: Please put you code in [ code ] [ /code ]Ã,  look at the last part of your scriptÃ,  palette.are is not acceptable. ;)

Because I don't want to, and you should had read my edit.
#6228
I didn't want to dig this up, but but but...

http://www.agsforums.com/yabb/index.php?topic=15095.msg185488#msg185488


* Gilbot V7000a HATES TXT style correcting!1!
#6229
Quote from: Hollister Man on Sat 03/07/2004 15:45:52
If you are using 256 color it can be done.Ã,  Using the setpalRGB, just set every palette slot (using a while loop) to have equal parts of R, G and B (you might want to average the R, G and B of each slot).Ã, 

No, don't use SetPalRGB(), especially in circumstances like this, that probably all 256 slots need to be changed at once. The reason was each call to SetPalRGB() updates the screen once, that made it updating the screen hundreds of times in one game loop (as this function only alters one colour slot at one time), which can be EXTREMELY slow with some computers (trust me, I had encountered this before). The best way is to mess with the palette[] variables, then call UpdatePalette() to update the screen at once.

Example:

First you need some variables to hold the original palette (so you can restore it back later).
color tmppal[256];

If you want to turn the screen B/W (I only do instant effect here, if you want gradual change, I can also post it here):
int i,tcolor;
while(i<256){
tmppal.are=palette.are;//save the palette
tmppal.g=palette.g;
tmppal.b=palette.b;
tcolor=(palette.are+palette.g+palette.b)/3;
palette.are=tcolor;
palette.g=tcolor;
palette.b=tcolor;
i++;
}
UpdatePalette();


If you want the colours back, just do:
int i;
while(i<256){
palette.are=tmppal.are;
palette.g=tmppal.g;
palette.b=tmppal.b;
i++;
}
UpdatePalette();



EDIT: Foolish txt style correcting, it's changing all my .R into .are
#6230
General Discussion / Re: I HAVE A MIKEPHONE!
Fri 02/07/2004 07:28:56
* Gilbot V7000a respect people who can record something via a mikephone into a midi file (note the address is wrong, no i at the end), and it's 400+ kb!

[Fe]Interesting.[/Fe]
#6231
Is the file on AGS's site updated as well? Because I cant download it via your link here.
#6232
Use scripting to position the character, example:

character[BLAH].x = 150;
character[BLAH].y = 80;
#6233
I think that'll not cause any problems. I did this all the time, rearranging the order of functions to suit my needs.
#6234
Advanced Technical Forum / Re: free sites
Fri 02/07/2004 02:41:24
Read the forum rules please.
As I think this is not a topic which will lead to much more discussions (there're similar threads already I think) I'll lock it instead of moving.
#6235
Glad to hear that's been solved, but my advice is that you should not use numbers directly to refer to characters (unless it's really necessary), use their script names instead. (You should note that, character number starts from 0, so it may be a problem if your player character is #0 and you're using 1 in your scripts).
#6236
heh isn't that obvious?

#sectionstart room_a  // DO NOT EDIT OR REMOVE THIS LINE
function room_a() {
  // script for room: Player enters screen (after fadein)
}
#sectionend room_a  // DO NOT EDIT OR REMOVE THIS LINE
#6237
Why? That feature was already implemented!
#6238
Why are you posting here then? Are you telling us a way to hack AGS (I don't care as I don't have M$VC and am not interested in hacking it, moreover it's of a user's own concious mind to determine whether he should have done something).

If you wanted to warn CJ of this you may just drop him a private message.

Moreover, you can just reply to that old thread without starting a new one.
#6239
What's the problem with the steering wheel ? It's also on the right side here too, but it's on teh left side in mainland China.
#6240
General Discussion / Re: Sam and Max Sprites
Wed 30/06/2004 10:33:06
How can you make a fangame from a game you don't want to play until you have made a fangame for ?

I'm seeing problems here...
SMF spam blocked by CleanTalk