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

Topics - 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 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.
#4
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!
#5
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?
#6
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