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

#41
What I mean is, how to set the timer so after a period of time the display text will go off?
#42
Beginners' Technical Questions / Display Text`
Wed 27/05/2009 15:14:10
Hi,

Just a quick question,

Can you put a display text, such as 'Display("hello") on a timer. If yes, how would you do it please?
#43
I have nearly done it, thank you. Just one more question. How do you put a red line around the dialog? the code is this?

// Clear the area organge
  info.Surface.Clear(64512);
   int i = 1,  ypos = 0;
  // Render all the options that are enabled
  while (i <= info.DialogToRender.OptionCount)
  {
    if (info.DialogToRender.GetOptionState(i) == eOptionOn)
    {
      if (info.ActiveOptionID == i) info.Surface.DrawingColor = 63488;
      else info.Surface.DrawingColor =1;
      info.Surface.DrawStringWrapped(5, ypos, info.Width - 10,
                         eFontNormal, eAlignLeft, info.DialogToRender.GetOptionText(i));
      ypos += GetTextHeight(info.DialogToRender.GetOptionText(i), eFontNormal, info.Width - 10);
    }
    i++;
  }
}
#44
Hi,

When you create a speaking dialog and you talk to somebody. It comes up with a black box at the bottom of your screen with red text. Do anybody know how to change the style of that box or do you have to make your own GUI?
#45
Hi,

Can I deactivate a key then activate it later on in the game?
#46
Beginners' Technical Questions / Re: Key codes
Sat 23/05/2009 21:06:12
Can I deactivate a key then activate it later on in the game?
#47
Beginners' Technical Questions / Re: Key codes
Fri 22/05/2009 23:13:50
This won't work because when the user presses the first right number a light will come on. when the user pesses the second number the second light will come on. They are not typing it into a text box
#48
Beginners' Technical Questions / Key codes
Fri 22/05/2009 22:50:32
Hi,

I have made numbered pad and now i'm linking the my number keys on my keyboard. How the numbered pad works, is you have got a 6 digit number like 253645 and if you press a wrong number you get game over. I can do it if the code has all 6 digits different. Bit i'm having a bit of trouble with codes that has a same number twice such as 253645 and I'm tring to link the 5 key up to them. I have got to different codes for them.

if(keycode =='5'){
if(vcomputer_3 == 1){bad3_2.Visible = false; vcomputer_3 = 2;} else {digipad_2.Visible = false; cEgo.ChangeRoom(12, 701, 519);}
if(vcomputer_3 == 5) {bad3_6.Visible = false; vcomputer_3 = 6;} else {digipad_2.Visible = false; cEgo.ChangeRoom(12, 701, 519);}}

but this don't work because if i press 5 the first time. it will read the second line of coding which is false. Is there any way I can to the two codes at different times using the same key on the same GUI please
#49
Quote from: Ghost on Thu 21/05/2009 19:55:51
Great  ;) Depending on the amount of GUIs with hotkeys, I think there might be better solutions (slimmer code, and all that).

Yes, its great, is there another way of doing it then, if you got a lot of GUIs?
#51
I have tried finding the 'Appendixes: ASCII Code Table.' but I can't find it.
#52
is the manual the help on the AGS software?
#53
what is the keycode of enter (return) please?
#54
ok, thank you
#55
Hi,

Out of interest, number how gobal varible can yo have in your game?

P.S. sorry again, if this in the wrong forum
#56
Thank you very much, the game is much quicker this way now. I had to adjust the code a bit to fit my game but it worked. Thanks
#57
Thank you, will try it tomorrow, will let you know how I got on.
#58
Hi,

I have made a GUI with a question followed by YES and NO buttons. normally you would have to click the buttons. Can you create a short key so if I pressed the Y key, the YES button will work, and the same with N for No. If yes, how would you go about it please?
#59

I now have two characters on the same time, one following the other one. I have also got a two hospots and when you go over thing happens and when you go over the other one it does the oppusite (on/off). Can you put a code in so that if char A walks on the hopstot, something happens for him and nobody else please?
#60
I have got another problem based on the same topic, i now have two characters on the same time, one following the other one. I have also got a two hospots and when you go over thing happens and when you go over the other one it does the oppusite (on/off). Can you put a code in so that if char A walks on the hopstot, something happens for him and nobody else please?

P.S. THANK YOU EVERYBODY WHO HAVE HELPED ME SO FAR, I'M REALLY LEARNING ALOT FROM THESE FORMS. THANKS  :)
SMF spam blocked by CleanTalk