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

#1
Thank you for this direction. I did go back to try the use of GUIs again, and that did give me the breakthrough I was looking for. I just had to apply them in nonconventional ways, but it ended up doing what I needed. Thank you again for the suggestion!

#2
Hello,
I have been racking my brain about how to have the character in the game walk up to a computer terminal and be able to interact with a Computer menu system on the screen and search for key words, select menu options, and have text files open on the screen and things like that etc.

Can anyone think of how to create an interface like that?

Thank you
#3
Okay thank you very much for your help with this
#4
Would it be possible to put a whole book (public domain) into the game? I have it in the form of a text file. Do you think it’s feasible? Where you could click on each chapter and read it?
#5
Quote from: Crimson Wizard on Sun 18/07/2021 08:51:52
Make GUI with a button for picture and a label for a text. And anything else more you might need.

Then write a function that displays that GUI, waits for player's input and hides GUI.

Code: ags

void DisplayDescription(int sprite, String text)
{
    // Following assumes that you have a GUI gDescription with a button btnDescPicture and a label lblDescLabel;
    // you may give your own names to these of course
    btnDescPicture.NormalGraphic = sprite;
    lblDescLabel.Text = text;
    gDescription.Visible = true;
    while (WaitMouseKey(1) == 0); // loop wait until player presses something
    gDescription.Visible = false;
}


Amend the above code to your needs, like add coordinates as parameters, or calculate position to center on screen, or around the mouse cursor, and so on.

Thank you for this. When I try to implement it. It won't allow me to include it when the character goes to look at an object, because it says it cannot have a nested function. I tried having it outside the look object function, but then it has the GUI launch and stay up on the screen from the moment the game starts.

Please let me know your thoughts.
Thank you
#6
I’ve been looking for a way to make a text box pop up with a picture, for when the character looks at a hotspot object. You can see a description of the object, plus a picture to go with it. I did some searching, but I can’t find anything that will combine both text and picture

Thank you for your help
#7
I started the second room with

    function room_FirstLoad()
     {

Because it’s the first time I am loading that room. But I also tried

    function room_Load();

And also

   function room_AfterFadeIn();

I tried each of these at a time and then I just tried to display a message and even that won’t work

Display(“message 123…”);

Thank you for your help
#8
Advanced Technical Forum / New Room problems
Fri 16/07/2021 21:53:27
I am using the change room code to switch rooms. Room 1 works fine:

cEgo.ChangeRoom(2);

And this gets me to the 2nd room, and the character loads into
the room and the room background is correct, but it won’t
display the text i.e., Dispaly(“hello xyz…”);  and it won’t
run the animations or anything. But the character can walk
around the room. It just won’t run any of the script for room 2

Your input is greatly appreciated
#10
Hello,
I am trying to have a shooting star fly across the sky in the game, so I created a view animation (vStar) and then assigned it to an object:

function room_FirstLoad()

{
Object[0].setview(vStar);
Object[vStar].Animate(1,1);
}

But I get the error message “fixed size array cannot be used in this way”

What am I doing wrong?
Thank you
SMF spam blocked by CleanTalk