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

#1101
Well, I don't have time to rewrite your whole script, I was  trying to give you the idea, hence the etc. etc.

Also, are you saying your stuff now works? It's not clear. What is wrong if it doesn't?
#1102
I think you meant to post in the MultiResponse thread, but the answer is:

Code: ags

if (Multi.last) {
  // do stuff
}

#1103
If you install it in the same directory, it WILL overwrite, I think. CJ just meant that you CAN install it elsewhere...
#1104
Also, read the BFAQ, especially the bit on scripting
#1105
As I pointed out on my blog, there is actually a separate French-speaking AGS forum, and I think that's where most Frenchies hang out.
#1106
To make stuff like this non-blocking, you need to set everything up in a function, then set some kind of variable. Then, you check for that variable in repeatedly_execute and if it is set, you do the stuff where you need the Waits.

Code: ags


int signScrolling;
int signTimer;
int pixelsright;
int a;
int b;
int pixelsleft;
int xleft;
int xcompare;

function ScrollSign(String message, int scrollfromx, int scollfromy) {

  RawSaveScreen();
  DynamicSprite* ScrollingSign=Scrolling.TextOnSprite(message);
  pixelsright=ScrollingSign.Width-1;
  a=(ScrollingSign.Width-pixelsright);
  b=a;
  xleft=scrollfromx;
  xcompare=(scrollfromx-136);
  signScrolling=2;
  signTimer=signScrolling;
}

function repeatedly_execute () {
  if (signScrolling) {
    signTimer--;
    if (signTimer==0) {
      while (pixelsright!=0) {
        RawRestoreScreen();                                        //erase it
        RawSaveScreen();
        DynamicSprite* ScrollingCrop=Scrolling.TextOnSprite(message);
        a=(ScrollingSign.Width-pixelsright); 
        b=a;
        ScrollingCrop.Crop(0, 0, b, ScrollingCrop.Height);                //crop them
        RawDrawImage(xleft,scollfromy,ScrollingCrop.Graphic);      //draw it
        ScrollingCrop.Delete();
        xleft--;                                                           //move it left
        pixelsright--;                                                 //reveal another pixel's worth of message
        signTimer=signScrolling;
      }


ETC.

However, wouldn't it be easier to put the sprite on an overlay or GUI and then just move the overlayor GUI around?
#1107
General Discussion / Re: I started a diet!
Thu 17/04/2008 23:14:43
Watching the people get chubby
Is not very pretty I tell ye
Walking through town like Mr Blobby
And not very sensible either
A friend of a friend he got eaten
He looked the wrong way at a policeman
Would never have happened to Smeaton
And old Leodiensian
La-ah-ah, la la lalala la
Ah-ah-ah, la la lalala la

I predict a diet, I predict a diet
I predict a diet, I predict a diet
#1108
[gratuitous blog ad]
I've stuck a poll as to what features you prefer on my blog (link in sig)  :=
[/gratuitous blog ad]
#1109
You can still create the XML in that bone version and export it back out to 1.10...

I have a new version in the works, but although stuff works better in some ways, a lot of this have got messed up and I may need to start again.
#1110
Can you try downloading v1.10 from the beginning of this thread, and then straight away without changing anything export the default animation and see if it works, please?
#1111
Surely the 3.02 suggestion thread now.. ;)

My favourite suggestions from this thread so far:

   * Ogg Theora video included
   * Widescreen support
   * Native Hi-res co-ordinate support (optional to maintain backward compatibility)
   * Game setup options configurable at runtime?
   * Non-blocking dialogs (toggle-able?)
   * PCX import
   * The compiler should barf if someone declares a variable or function in a script header as this is (I think) never what someone actually wants.
   * Group operations in view editor: copy, cut, paste, flip

And of course, the old biggies: functions being first class objects and pointers to structs being allowe dinside structs
#1112
Make sure you download the latest version
#1113
Presumably you've passed it on to Emerald, then...?
#1114
General Discussion / Re: Gameboomers?
Wed 16/04/2008 13:21:22
Only use it if you want to upset gypsys and other travellers...
#1115
The Dengvat module has a built in GUI for this kind of thing...
#1116
27 hour response too slow for you, eh?

You could add a function to the Dengvat module to iterate over the array(s) and write them to a file. I won't have time to do this in the near future, though.
#1117
Firstly, use [ code ] ... [ /code ] to put stuff in a code block.

Secondly, the general solution as to "walk-tos" being blocking is to do a bit of scripting in your on_click function so that the game remembers that you are walking somewhere for a reason, even though you do it non-blocking and then runs the processclick after you've stopped moving with your non-blocking walk.
#1118
Why not have a fullscreen GUI on top of everything with your all-white BG and then change the GUI's transparency?
#1119
Turn on font outlines. That puts an outline of a different colour around your fonts and so makes it visible on any background. This is what they do in subtitles in movies and TV..
#1120
Get a room, you guys ;)
SMF spam blocked by CleanTalk