popup gui pauses game. [SOLVED]

Started by YotamElal, Wed 02/03/2005 11:54:06

Previous topic - Next topic

YotamElal

I don't want my popup gui to pause the game.

?

Ashen

Change it's visibility setting to 'Normal' instead of 'Popup Modal', and turn it off in game_start
I know what you're thinking ... Don't think that.

YotamElal

It's a special popup that imitates "mouse y" gui

I wanted to have my inventory in the iconbar (set to mouse y)
but mouse y doesn't work well with a long  inventory.
I can't use inventory on inventory...

So I put a hotspot that loads my popup iconbar in every screen in the y position,
I put allso had to have a hotspot that is on the hole screen that shuts off my popup iconbar.
So everything now works fine.
Except that I don't want my iconbar to pause the game...

So how do I solve It.

Maybe someone know how to solve the problem of mouse y iconbar not working well with long inventory.

monkey0506

Quote from: YotamElal on Wed 02/03/2005 12:52:20
It's a special popup that imitates "mouse y" gui

I wanted to have my inventory in the iconbar (set to mouse y)

First SET THE GUI MODE TO NORMAL.  Then, add this code into the appropriate places (DO NOT JUST COPY AND PASTE) in your global script (make sure you use the real values for those in bold):

Code: ags
function game_start() {
  GUIOff([b]INV_GUI[/b]);
  }

function repeatedly_execute() {
  if (mouse.y > [b]Y_POS[/b]) GUIOn([b]INV_GUI[/b]);
  else GUIOff([b]INV_GUI[/b]);
  }


Quote from: YotamElal on Wed 02/03/2005 12:52:20
So everything now works fine.
Except that I don't want my iconbar to pause the game...

So how do I solve It.

Read what I, AND THE PERSON BEFORE ME, wrote.

Quote from: YotamElal on Wed 02/03/2005 12:52:20Maybe someone know how to solve the problem of mouse y iconbar not working well with long inventory.

Maybe:

1.  Describe the problem in more detail.
2.  Change the X-value of the GUI.
3.  Try posting the code that you have.
4.  READ THE MANUAL.*
5.  READ THE BFAQ.*
6.  SEARCH THE FORUMS.**

*These resources are provided FOR FREE for beginner reference.  They should always be the first source of reference when a problem is encountered.

**Searching the forums is a useful way of finding out that others have asked the same questions.  In this case, your answer will be the same as theirs.  If they have not yet received a reply, you can continue searching, or wait for a response to their inquiry.  Posting questions are answered in the manual, BFAQ, or other topics will often result in your flaming/death.  Please prepare to die.

YotamElal

first of all thanks for the code,..


second:

Quote
1. Describe the problem in more detail.
2. Change the X-value of the GUI.
3. Try posting the code that you have.
4. READ THE MANUAL.*
5. READ THE BFAQ.*
6. SEARCH THE FORUMS.**
Quote

1) most of my problems are described with enough detail.
2) don't understand what u are saying and y?
3) I usually post code when It's nessacary
4) I ALLWAYS READ THE MANUAL & TRY TO SOLVE THE PROBLEMS MYSELF.*
5&6) Thats a good Idea, Ill try It out.
         I'm new to foruming & to scripting...
         & Iv'e never programed.
         So I probobly have alot more things to change,
         Like the way I script or the way I ask questions... etc..


Third

Quote
Please prepare to die.
Quote

That is  not nice to say to a new forum user who is working hard on a game for your comunity.
It's usually enough to explain things,
Telling a person to "Please prepare to die.",
should only be said if the person "doesn't give a dam"
and does what he wants.


:o)
No hard feelings.
I just hope that you'll use less the - flaming/death threat.
There is enough flaming death in our lives and in our world.

& 1 MORE THING
If u would kill me then I'd be stuck with a 90% ags game and with no one to help me finish.. It would be my lose and the comunity's loss.



BTW I loved what u said (in some other topic).
Quote
start off with a project with no prior knowledge of how to do any of the things
that you need to get done.
Assuming that you have no deadline to meet,
then you can take your time, and learn by experience.
That's the best way.
Quote

Ive been doing that all my life.
I copied the text to show people who don't do that.

SSH

Well, of course death threats are rude and a bit out of order, but you did ask a question, get ana answer and then ask it again, which is rude as it shows you didnt read the answer
12

YotamElal

It's nice you admit that you were rude and out of order but why o it again?

Now you are acusing me of not reading an answer that someone wrote for me and telling me that I was rude!?#?

I read everything people write to me (emails, forums, letters,...);
&
for now I have replied every post that was posted to me in this site.
This is the first forum I am using.

ANyways... I hope you will enjoy my game.. (90%Complete)

SSH

#7
I didn't admit I was rude. I said that someone else was rude. Are you SURE you are reading this?

And you certainly hadn't read:
Quote from: Ashen on Wed 02/03/2005 11:58:30
Change it's visibility setting to 'Normal' instead of 'Popup Modal', and turn it off in game_start

or why would you have then posted:

Quote from: YotamElal on Wed 02/03/2005 12:52:20
It's a special popup that imitates "mouse y" gui

I wanted to have my inventory in the iconbar (set to mouse y)
but mouse y doesn't work well with a long inventory.
I can't use inventory on inventory...

So I put a hotspot that loads my popup iconbar in every screen in the y position,
I put allso had to have a hotspot that is on the hole screen that shuts off my popup iconbar.
So everything now works fine.
Except that I don't want my iconbar to pause the game...

So how do I solve It.

Maybe someone know how to solve the problem of mouse y iconbar not working well with long inventory.


Popup Modal GUIs will pause your game, so set the GUI to Normal.
12

monkey0506

Quote from: YotamElal on Thu 03/03/2005 15:10:20
It's nice you admit that you were rude and out of order but why o it again?

Erm...Well, seeing as neither monkey0506 OR monkey_05_06 (my logged screen name) are SSH, I wasn't apologizing. Ã, If you had read the manual and Ashen's post, you could have solved the problem. Ã, If you had read both.

Quote from: YotamElal on Thu 03/03/2005 15:10:20Now you are acusing me of not reading an answer that someone wrote for me and telling me that I was rude!?#?

I read everything people write to me (emails, forums, letters,...);

First: Ã, No, I didn't say that. Ã, SSH said that by not reading Ashen's post, you were being rude. Ã, I repeat, had you read both the manual and Ashen's post, you could have solved your problem.

Quote from: YotamElal on Thu 03/03/2005 15:10:20&
for now I have replied every post that was posted to me in this site.
This is the first forum I am using.

ANyways... I hope you will enjoy my game.. (90%Complete)

Well...It's not very likely that you have "replied every post that was posted to [you]" as that would entail you posting after every person who posted in regards to one of your post and acknowledged their post *looks at YotamElal's reply to Ashen's post*. Ã, Oh, and by the way:

Quote from: YotamElal on Wed 02/03/2005 11:54:06
I don't want my popup gui to pause the game.

?

You used so much detail in describing the problem here, I think I'll have to congratulate you on the best post ever. Ã, I'm not trying to be rude, but if you look around you can usually find the answer to problems like this.

*For more information, please try not searching the forums:*
http://www.adventuregamestudio.co.uk/yabb/index.php?topic=16543.msg203495#msg203495
http://www.adventuregamestudio.co.uk/yabb/index.php?topic=19066.msg234162#msg234162
http://www.adventuregamestudio.co.uk/yabb/index.php?topic=19295.msg235314#msg235314
http://www.adventuregamestudio.co.uk/yabb/index.php?topic=15100.msg185394#msg185394
http://www.adventuregamestudio.co.uk/yabb/index.php?topic=15375.msg203375#msg203375

Just to name a few. Ã, It may require some reading, but all of these posts are relevant to the fact that POPUP MODAL GUIS PAUSE THE GAME.

By the way, I'm sorry if I sound rude, I'm just trying to get people to follow the correct procedure. Ã, It's pretty much common sense that you could search the forums to see if anyone had a similar problem in the past. Ã, ::)

EDIT: HAHAHHAHAHAHAHAHAHHA! Most excellent post SSH.

YotamElal

I Asumed the replay was from monkey0506 & I didn't notice It was from SSH
So ignore the mistaken post... Oops!

SSH :
1) Yes I did read it & I replyed saying that it won't fix my problem becuase I have a long inventory on the icon bar and it has problems with it!

2) In ags there are all kind of rules (like: popup gui pauses game)
and usualy there is either a way around them or they can ve changed...
I know that popup gui pauses game. thats why a made a post.
Asking if anyone knows how to make it not pause or how to use normal gui with a long inventory & monkey0506 gave me the code that helped.

monkey0506:
1) You can check the topics I started and see that I was the last one to post in almost all of them, either with  a Thankyou&Solved or with a further question.
The only times I didn't post last is when someone posted somthing irrelavent or towards someone else.
I even posted with a thankyou even though that I din't need the answer anymore.
So maybe It's not likeley, but for now I have probobly up to 20 post I started, so that makes it simple to follow them...

2)Some of my post may not have enough information but most of them do.

3)As I said I'm new to foruming and I'll try to search the forums before posting.

BTW ido'tven knowhow to insert yur qqqqqqqqtes normaly.

Ashen

Reading back through this thread, the question seems to have become "How do I get my inventory working?" rather than "How do I make a GUI not pause the game?"

To answer that question, you need to give us more informaton:

What, exactly, is wrong?
You say "mouse y iconbar not working well with long inventory" and "I can't use inventory on inventory..." What do you mean by these?

What have you tried?
You say you found a workaround, which still didn't quite work. Show us the script you used, we might be able to help.
I know what you're thinking ... Don't think that.

YotamElal

NM my GUI is now fine...

:o)


SSH

Quote from: YotamElal on Fri 04/03/2005 05:47:48
SSH :
1) Yes I did read it & I replyed saying that it won't fix my problem becuase I have a long inventory on the icon bar and it has problems with it!

No, you did not say that. God, you don't even read your OWN posts. Look:

Quote from: YotamElal on Wed 02/03/2005 12:52:20
So everything now works fine.
Except that I don't want my iconbar to pause the game...

So how do I solve It.

Glad that you have sorted it now, though. To quote other people's replies, look on the posting screen at the Topic Summary and you'll see lots of "Insert Quote" links just under the time/date for each post. Or, you can just hit "Reply with quote" on the thread view.
12

Ashen

#13
Any chance you could post what the problem was, and how you solved it? In case anyone else has the same problem in the future. (Also, I'm a nosey git curious.)

EDIT: Ah, right. It's just that, from your later posts, I'd thought it was something other than the popup modal thing.
I know what you're thinking ... Don't think that.

YotamElal

What I wanted was to have a full inventory in the icon bar.
and to disable the inventory window.
(like a Lucasarts-style inventory but popup)

The defualt "Mouse Ypos"  didn't let me use an item on antoher item.

So I made the iconbar a "popup model" and put a y hotspot in everyroom,
(if cursor is over hotspot then turn on gui)
I hoped that it may solve the inventory problem and it did.

But then I noticed that it paused the game and I didn't want it to.?

after trying to solve the problem I posted..
and I got two answers.


1)Ashen: Change it's visibility setting to 'Normal' instead of 'Popup Modal'.

(cuase the popup model pauses the game)


2)monkey0506 gave me this code to use instead of the hotspots:

function game_start() {
  GUIOff(INV_GUI);
  }

function repeatedly_execute() {
  if (mouse.y > Y_POS) GUIOn(INV_GUI);
  else GUIOff(INV_GUI);
  }


Now eveerything is perfect :o)

monkey0506

Please feel free to note that with my script you should be able to delete those hotspots from every room.  I don't know how many rooms you have, but there's a button for deleting an entire color, so it shouldn't be too difficult.  However, I would suggest that you take the hotspot out of one room, and then test it to make sure that the GUI still turns on.  If not, then just put the hotspot back.

TerranRich

SSH and monkey0506, you were both out of line. When I stated in the Rules sticky to throw away the rule of not acting like a moderator, I certainly didn't mean THIS. There will be no flaming here, and no "preparing for death". And NO typing in 30-point font in bold caps. Just tell him politely that you already answered your question and he should look up the proper resources. I would've told him that myself, in a polite manner. I may be harsh sometimes, but not overtly so and not in an offending and rude manner.

Thank you.
Status: Trying to come up with some ideas...

YotamElal

monkey0506:
I wrote: monkey0506 gave me this code to use instead of the hotspots.

(What I ment is that your code worked perfectly instead of the hotspots,
and I posted after I deleted them and saw that the iconbar works fine)

THNX AGAIN 4 THE CODE


TerranRich:
Thanks...
Yes, we should all be nice and polite to eachother,
cause there is enough shit in the world & in our lifes!
:o)

TerranRich

Just so you know, that's not how we usually handle things here (being rude and offensive, that is). :)
Status: Trying to come up with some ideas...

SMF spam blocked by CleanTalk