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

#261
My new code works fine.

Thanks to everybody.
#262
Thanks Ryan.

Here a new code.
Code: AGS
function repeatedly_execute_always() {
  // Put anything you want to happen every game cycle, even
  // when the game is blocked inside a command like a
  // blocking Walk().
  // You cannot run blocking commands from this function.
  if (gQuitter.Visible) mouse.Mode = eModePointer;
}
#263
I tried:

Code: AGS
if (keycode == eKeyCtrlQ){
   mouse.UseModeGraphic(eModePointer);
   mouse.Mode = eModePointer;
   gQuitter.Visible = true; // Ctrl-Q
}


The walking cursor still appears.

But the code I just found works fine. See bellow.

Code: AGS
function repeatedly_execute_always() {
  
  // Put anything you want to happen every game cycle, even
  // when the game is blocked inside a command like a
  // blocking Walk().
  // You cannot run blocking commands from this function.
 if (IsGUIOn(9)){
  mouse.UseModeGraphic(eModePointer);
 }
}


Maybe there is an easier way to do.
#264
AGS keeps showing walking icon with my custom Quit gui.

Code: AGS
if (keycode == eKeyCtrlQ){
 mouse.UseModeGraphic(eModePointer);
 gQuitter.Visible = true;   // Ctrl-Q
}

#265
Thanks Sunny Penguin

Here new screenshots:

[imgzoom]http://www.atariage.com/forums/uploads//monthly_11_2012/blogentry-1196-0-07619900-1354207247.gif[/imgzoom]
Title screen

[imgzoom]http://www.atariage.com/forums/uploads//monthly_06_2013/blogentry-1196-0-49212600-1371748214.png[/imgzoom]
The aquarium tank is leaking. Who did it?

[imgzoom]http://www.atariage.com/forums/gallery_ips/gallery/album_185/gallery_1196_185_347.gif[/imgzoom]
How to pass the flame?
#267
Do you mean ego1 still following ego2?

I worked on my game today and I have the same problem.
#268
It works!!!!!!!

I checked all the guis availables. Your code works.


Thank you
#269
Quote from: Ryan Timothy on Wed 12/06/2013 15:34:38
That's really funny, I swear I suggested that already...

Quote from: Ryan Timothy on Tue 11/06/2013 17:50:49
Code: ags
function repeatedly_execute_always() {
  if (IsInterfaceEnabled()) Hover.Visible = true;
    else Hover.Visible = false;
}


Always inform us what you're attempting to do because there's generally always a better way than what a beginner scripter thinks they need to do.

I tried your code:

Code: AGS
function repeatedly_execute_always() {
  
  // Put anything you want to happen every game cycle, even
  // when the game is blocked inside a command like a
  // blocking Walk().
  // You cannot run blocking commands from this function.
  if (IsInterfaceEnabled()) Testing.Visible = true;
   else Testing.Visible = false;
}


The custom Quit gui:
Code: AGS
function btnIconExit_Click(GUIControl *control, MouseButton button) {
 gIconbar.Visible = false;
 gQuitter.Visible = true;
}


The Overhotspot still works.

Buf if I add a code to the custom Quit gui,

Code: AGS
function btnIconExit_Click(GUIControl *control, MouseButton button) {
 gIconbar.Visible = false;
 Testing.Visible = false;
 gQuitter.Visible = true;
}


The overhotspot is disabled until it's enabled again.

I don't even need to disable all hotspots I thought.
#270
Changing the label? Yeah! I can do that.

Thank you.
#271
Quote from: Ryan Timothy on Wed 12/06/2013 00:34:38
Everything is fine, yes, but if you would like the best solution to your problem then you should tell us what you're doing.

But from reading your code, you're pressing the exit button and have a Quit GUI pop up. Therefore you're using the wrong solution.

You want to set the GUI as pause game when shown. That should be the only solution you need. You wouldn't need to disable hotspots, objects, or characters.

You're right. I made a custom Quit gui. Even if the gui has "Pause game whem showed" selected (Quitter means Quit in French), overhotspot is still working and I want to disable it. I will apply with other guis as well.
#272
Quote from: Crimson Wizard on Tue 11/06/2013 20:56:03
Oh my.
It should start with 1. :) Hotspot 0 is "no hotspot".

Code: ags

 int i = 1;
 while (i < 50) // since there are 50 hotspots max
 {
  hotspot[i].Enabled = false;
  i++;
 }


PS. No "if (hotspot[ i ])" check is not needed, because there's always 50 (49) hotspots in 3.2.1 (even though most could be unused).

It works. Thank you.

To Khris:
Nevermind. Everything is fine. Thanks anyway.
#273
Phemar. Your code is not working. I still get the same message.

Code: AGS

function btnIconExit_Click(GUIControl *control, MouseButton button) {
 gIconbar.Visible = false;
 int i = 0;
 while (i < 50) // since there are 50 hotspots max
 {
  if (hotspot[i]) // <--- Doublehotspot: invalid hotspot specified
   hotspot[i].Enabled = false;
  i++;
 }
 gQuitter.Visible = true;
}


Please check the line 6.
#274
To Ryan:
Hover.Visible = false; works fine.

To Crimson Wizard:
I got DisableHotspot: invalid Hotspot specified



Here the code:
Code: AGS
function btnIconExit_Click(GUIControl *control, MouseButton button) {
 gIconbar.Visible = false;
 int i = 0;
 while (i < 50) // since there are 50 hotspots max
 {
  hotspot[i].Enabled = false;
  i++;
 }
 gQuitter.Visible = true;
}


Hover.Visible = false; seems to disable hotspots anyway.
#275
I noted that HOVERHOTSPOT still enabled when guis are displayed.

Is there a better way to disable hotspots than this?

hotspot[1].Enabled = false;
hotspot[2].Enabled = false;
hotspot[3].Enabled = false;
...


And how to disable when a cursor points to characters?
#276
What's the point with a farmer of 19th century, a boy of 24th century, a witch of 17th century and a girl of 20th century?

They all are abducted by a strange UFO. Then they are all prisonners in the mystery spaceship.

Choose a character by clicking their heads.[imgzoom]http://www.atariage.com/forums/uploads//monthly_06_2013/blogentry-1196-0-77079200-1370051754.gif[/imgzoom]

The goal is to discover who he or she abducts people and why?

[imgzoom]http://www.atariage.com/forums/uploads//monthly_06_2013/blogentry-1196-0-74285800-1370051895.png[/imgzoom]

The game has the main quest to complete by using one of any characters.
Mini-quests can be completed only by one of them.

[imgzoom]http://www.atariage.com/forums/uploads//monthly_06_2013/blogentry-1196-0-37100400-1370051966.png[/imgzoom]

Four different openings

[imgzoom]http://www.atariage.com/forums/uploads//monthly_06_2013/blogentry-1196-0-95396500-1370052082.png[/imgzoom]

The screenshots are in French but the game will support English as well.

[imgzoom]http://www.atariage.com/forums/uploads//monthly_06_2013/blogentry-1196-0-01884700-1370052213.png[/imgzoom]

Expect to see more bodies on the ground in the game.



Here a scene with all four characters together.

My to do list before releasing a demo:

- Add one more character to finish the ending. Done

- Reworking Carl's intro. Done

- Working on Robin's, Inconcia's and Anne's intro. Done

- Translating from French to English. Done

The demo's out.
http://agisite.zxq.net/spacetrash.htm

AGS database
http://www.adventuregamestudio.co.uk/site/games/game/1750/


The game is French with English translation.
#277
Wierd...

Because I have no problem with background when the player speaks.



Unless you use different technique.
#278
Check the use GUI for dialog Option. You might use the wrong GUI for dialog.
#279
I know it already by clicking on the box with white border like I said. I mean the box in the inventory gui.


Thanks for extra tips anyway.

QuoteAnd frankly, to me it's a mystery why people don't use this feature properly

People like me don't use auto-complete window feature but just copy and past commands from the manual.
#280
I got it.

Code: AGS
function game_start() {   
  // Put the code all in a function and then just call the function. 
  // It saves cluttering up places like game_start.
  initialize_control_panel(); 
  invCustomInv.ItemHeight = 30;
  // Use the KeyboardMovement module to, per default, replicate the standard
  // keyboard movement of most Sierra games. See KeyboardMovement.txt for more info
  KeyboardMovement.SetMode(eKeyboardMovement_Tapping); 
}


Also I clicked on the box with white border in Inventory gui. How did I miss it?

If I used the command in the room script, that's because I don't know how to use it untill now.

Thank you guys.
SMF spam blocked by CleanTalk