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

#1
Hi everyone,
I created a GUI and used it for dialog options. It's an ordinary GUI.
Then I wrote in function game_start() the following code:
game.dialog_options_x = 16;
game.dialog_options_y = 114;

(game resolution is 320x200)

It works perfectly... but only if the option "print dialog options upwards" is set to false!

I'd like to print my dialog options upwards, so I turned that option to true... and the Dialog options doesn't work anymore!
if I turn that option to true again, the dialog works!

I can't figur out what was wrong!!

Thank you.
#2
Hi everyone,
I'm trying to realize a music cross-fade.
I have two music tracks: aMusic01 and aMusic02.

I tried to do it in the following way:

1) Start the first track:

AudioChannel* CHAN = aMusic01.Play(eAudioPriorityNormal, eRepeat);
CHAN.Volume = 100;

2) Some scripts (not important)

3) Cross-fade between aMusic01 and aMusic02:

AudioChannel* CHAN2 = aMusic02.Play(eAudioPriorityNormal, eRepeat);
CHAN2.Volume = 0;
        int VOLUME1 = CHAN.Volume;
        int VOLUME2 = CHAN2.Volume;
        while (VOLUME1 > 0)
         {
         VOLUME1 = VOLUME1 - 5;
         VOLUME2 = VOLUME2 + 5;
         CHAN.Volume = VOLUME1;
         CHAN2.Volume = VOLUME2;
         Wait(1);
         }

The problem is:
This script doesn't work if aMusic01 and aMusic02 are inside the AGS "MUSIC" folder.
It works only if the tracks are in the AGS "SOUNDS" folder.
Why?
If this works only with the "sounds" folder, why don't use only sounds folder? Why is there the Music folder?
What exactly is the difference between those two folders?

Thank you.
#3
G'day,
I was wondering if it's possible to change Winsetup's options during run-time.
For example, is it possible to change language during run-time? Is it possible to start the game playing in-window-mode and then go full-screen during run-time?

Thank you. 
#4
Hi, I'm new here.
I'm working on a short game and I want to use a text GUI for dialog options (not the black strip at the bottom of the screen). I created a text GUI, but it is always shown in the centre of the screen and it's not so wide too.

I'd like it was more wide and I'd like to translate it a bit down in the screen.
Is there a way to move the dialog option box and change its dimensions?

I read a lot of threads concerning dialog box, but I didn't understand how to do. I don't want to create a custom dialog system, I just want to adjust my text Gui size and position.

Thank you.

Stew
SMF spam blocked by CleanTalk