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

#1
Hey guys,

right now I'm trying to figure out something that might have a real quick and easy solution for it, so you guys can surely help me.
My game has a notebook GUI (see picture below) that is accessible always via the book icon in the upper left hand corner of the screen.
It has a bunch of stuff in it, and multiple connecting GUIs as pages. At the corners of the book there are invisible buttons to flip the pages.



Now, I want to add a page where the player has to solve a puzzle inside the notebook, with a kind of - for lack of a better word - shifting and animating select mechanism.
Click on the arrow, it animates the shift and comes to a halt at the next word. It's supposed to look like this in the end:



As you appearently can't animate things in GUIs, I had to find a work around.
I planned on making the notebook page that is needed an object instead, so closing the GUI and making the object visible when you flip the last GUI-page.
The next step would be to make a transparent GUI with buttons that make the arrows work and put it on top of the object.

The problems I've run into:

  • I can't seem to access the object in the global script, so this:
Code: ags
function Button214_OnClick(GUIControl *control, MouseButton button)
{
  AufgabenBuch.Visible = true;
}

    unfortunately doesn't work. Any way to do this easily?

    • Changing the images on the object. I know that it's possible to interact with objects, but this is not what I want.
      I need the image on the object to animate and change without the player interacting with the actual book-object, i.e. the player pressing the invisible GUI-button and the image changing. Any ideas about this?

    I'm sorry for this being a little hefty and thanks in advance, guys!
#2
Hey there!

I got a dialog going on that displays answers sentence by sentence:

Code: ags

@1
  cAlce.SayAt(400, 530, 700, "&2 Lord Buho, amable como es, prestó tres de sus obras más valiosos al museo.");
  cAlce.SayAt(400, 530, 700, "&3 Hace tres días, en concreto el domingo por la noche, fueron robadas.");
  cAlce.SayAt(400, 530, 700, "&4 Desgraciadamente aquel día no estuve aquí, sino en Alemania...");
  cAlce.SayAt(400, 530, 700, "&5 porque me habían invitado a participar en la convención de repollo.");


I would like to add a button to my GUI displaying the text that lets the player skip to the next sentence and another to enable the player to go back to past sentences and read it again.
Another button should play the speech again.

Do you have any ideas how I would go about that?

Cheers in advance!
#3
Hey guys, me again. (laugh) I've been searching through the forums and figured it might be easier to just ask.

I am trying to customize the position of the Sierra Style with background dialog, the whole thing, portrait and textbox. Right now it's awkwardly stuck in the middle of the screen.
Is it possible to determine the position of the dialog on the screen?
Note that this is not about the dialog options box, but the one that the answers are displayed in.

For a workaround, I tried setting the text box to a GUI (not a text GUI but a normal one) in general settings (custom text-window GUI) , but when loading up the game it stops loading and gives me an error message ("GUI set as text-window but is not actually a text-window GUI"... which makes sense).
My question: Can I use a normal GUI to display the text down in a Sierra-Style dialog? I think for positioning, this would work the best.

Also, since I am already here, another question: Is there a way to determine the maximal width and height of a Sierra Style dialog box?

Cheers!  ;-D
#4
Hey guys, absolute beginner here.

I am trying to have a dialog (dDialog5) start right when the room loads.
I used this code in the room script:

Code: ags

function room_AfterFadeIn()
{
  dDialog5.Start();
}


This code works when clicking on a character in this room and others, but nothing is happening when I put a command in this room directly. I tried multiple options, like:

Code: ags

function room_AfterFadeIn()
{
  Speech.Style = eSpeechSierraWithBackground;
  aMusic1.Play();
  gBuch.Visible = true;
}


But none of those commands work when I start up the room.
Anyone got an idea? :-[
SMF spam blocked by CleanTalk