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

#1
I have a problem with cut scene that repeat itself.
This is the code I used, and before this I want to mention that I know I used a lot of variables.
Now I used the variable once_scene for the second cut scene that play just once and won't repeat it self after the player come back again to the room. And after all that this is what happening and the problem.
I put the code in "Player enters room (after fadein)".

The Code â€"
----
int once_scene;

if (GetGlobalInt(1) == 99) {
  if (once_scene == 0) {
      StartCutscene(eSkipESCOnly);
      cMan1.Say("<Foreign Language Here>");
      cSah.Say("<Foreign Language Here>");
      cMan1.Say("<Foreign Language Here>");
      cMan2.Say("<Foreign Language Here>");
      cMan3.Say("<Foreign Language Here>");
      cSah.Say("<Foreign Language Here>");
      cMend.Say("<Foreign Language Here>");
      cSah.SpeechView = 31;
      cSah.Say("<Foreign Language Here>");
      cSah.Say("<Foreign Language Here>");
      cMend.Say("<Foreign Language Here>");
      cSah.Say("<Foreign Language Here>");
      cSah.SpeechView = 6;
      EndCutscene();
      SetGlobalInt(1, 1);
      dHAIM.SetOptionState(4, eOptionOff);
      dHAIM.SetOptionState(5, eOptionOn);
      once_scene = 1;
      }
  }
//// This is the problem cut scene. 
if ((GetGlobalInt(1) == 3 && GetGlobalInt(4) == 0 ) || (GetGlobalInt(1) == 2 && GetGlobalInt(4) == 0) ) {
  if (once_scene != 2) {
      StartCutscene(eSkipESCOnly);
      cMan1.Say("<Foreign Language Here>");
      cSah.Say("<Foreign Language Here>");
      cMan1.Say("<Foreign Language Here>");
      cMan2.Say("<Foreign Language Here>");
      cMan3.Say("<Foreign Language Here>");
      cSah.Say("<Foreign Language Here>");
      cMan1.Say("<Foreign Language Here>");
      cSah.Say("<Foreign Language Here>");
      cMan2.Say("<Foreign Language Here>");
      cSah.Say("<Foreign Language Here>");
      cMan3.Say("<Foreign Language Here>");
      cMend.Say("<Foreign Language Here>");
      once_scene = 2;
      Display("ecnes_ecno = 2;");
      EndCutscene();
      if (dHAIM.GetOptionState(4) == eOptionOn) {
         dHAIM.SetOptionState(4, eOptionOff);
         dHAIM.SetOptionState(5, eOptionOn);
         }
   }
}

---
What do you think?

Thank you!

#2
I remember that I saw the option to make - if the character have object one do that and that, I search the manual and didn't find. It is exist? Could you direct me where in the manual it written?

Thanks!
#3
I loved to, even I hoped to avoid it.  :) I didn't reed the manual good enough, so when I make GUI visible "Popup Modal" I didn't know it will block keys and mouse clicks and this was my problem, so when I do that the visible is "Normal" and reed in the manual how to false the visible everything was all fine and work.   
#4
Thanks for the help, I figure what was wrong.
#5
I feel stuped... I use 2.7 manual while I use AGS's 2.72 version.
Sorry my mistake. Just now I undersend why things like this happen to me.  :)
Thanks. 
#6
I had made a GUI with Text Box and when this GUI is on, all the keys are not working. I know that because the text box, but I saw that it not have to block. And it blocks buttons too.
Someone have an idea? And why it happens? Because the text box or the GUI?
Thanks.
#7
I tried to change the mouse mode.
This what I had tried -

mouse.UseModeGraphic(eModeInternet);
mouse.DisableMode(eModeLookat);
mouse.DisableMode(eModeTalkto);
mouse.DisableMode(eModeInteract):

The player can't move in this room so I don't disable the walk.
Instead of to do what I wish for, it stays on Interact mode and all the others modes are disabling.

Thank you for your help!
#8
Ok, Its makes me crazy. I had tried  to change the label's name like it say in the manual, but AGS don't have this command.
I had tried doing this-

-label name-.SetText("Serching....");

But the - SetText don't existing. What to do?
I have the same problem with the text box, when I want do erase the text that the player put in, I try to use

txtUserInput.SetText(" ");

And again it doesn't existing.
And, I tried it with the List Box and the same problem.
 
What to do?
#9
Thank you!
Now I know how to work with the text box. At least the basics.  ;)
#10
Thank You!  ;D
It work's, but I have still more problems. First of all what actually â€"
control.AsTextBox.Text mean?
Second thing, I want to make some few possibilities. Like, when the player put some specific text he will get one thing and when he will put something different he will get other thing.

One more question, I try to put not an English text and it can't show it, despite the font can support it. Why it happen? It just can't be?
   
#11
Hi, I am kind of new at this, I am working with AGS for a year or less but I don't know everything.
Ok, the problem is that I can't make a text box. I had never done it before and when I had tried I had failed.
I tried to search for a solution in here but I failed again, I was never good in this. (:
So, in the game that I'm working on now, I want the player to use his laptop and search in the "web" for something (to "google"), and when I check the guide and copy the orders it tell me that they are old.
So what do you think should I do? If you can't bring me the directly the answer, maybe you can provide me a link to some place that answers it.

Sorry for my bad english.. :) this forum ROCKS!

Thank you very much!                 
SMF spam blocked by CleanTalk