Help GUI Locations and other things...

Started by CTxCB, Mon 25/01/2010 14:02:02

Previous topic - Next topic

CTxCB

I need some help...

I am making a Phantasmagoria style GUI where you have your Inventory, your look icon, Control Panel Button and Skip Button, Hint Icon, but how do i need help:

1.)How do I postion the GUI Near the bottom of the Screen
2.)Where do I put the Theora Code?
3.)How do I set a Timer after an Action or if you do not click for 30 seconds the Actor looks from side to side before returning to original position
4.) is there anything else I would need to do to make a FMV Game?

CTxCB

Quote from: techodog on Mon 25/01/2010 14:02:02
I need some help...

I am making a Phantasmagoria style GUI where you have your Inventory, your look icon, Control Panel Button and Skip Button, Hint Icon, but how do i need help:

1.)How do I postion the GUI Near the bottom of the Screen
2.)Where do I put the Theora Code?
3.)How do I set a Timer after an Action or if you do not click for 30 seconds the Actor looks from side to side before returning to original position
4.) is there anything else I would need to do to make a FMV Game?

Could someone Really Help me and Make a Phantasmagoria GUI for me... I tried but got stuck... How do i make a color in a gui become transparent?

Dualnames

1.)How do I poistion the GUI Near the bottom of the Screen
- Simple.

Code: ags
 gGuiNameHere.Y=System.ScreenWidth-gGuiNameHere.Height;


2.)Where do I put the Theora Code?
Check the theora plugin topic, it has a demo.

3.)How do I set a Timer after an Action or if you do not click for 30 seconds the Actor looks from side to side before returning to original position

int timeclick;//place this on top of the global script or use global variables pane instead.
Code: ags

function mouse_click() {//Find the mouse click section on the globalscript.
timeclick=0;
}

function repeatedly_execute() {
timeclick++;
 if (timeclick==1200) {
    timeclick=0;
    //play animation here (didn't really get what you mean exactly..)
    }
}

Worked on Strangeland, Primordia, Hob's Barrow, The Cat Lady, Mage's Initiation, Until I Have You, Downfall, Hunie Pop, and every game in the Wadjet Eye Games catalogue (porting)

monkey0506

As for Theora it actually depends how you want to use it. PlayVideo does support Theora videos (since AGS 3.1.1) but you can't use the video (for example) as part of a background while the rest of the game continues on around it without scotch's plugin.

CTxCB

Quote from: Dualnames on Mon 25/01/2010 20:38:33
1.)How do I poistion the GUI Near the bottom of the Screen
- Simple.

Code: ags
 gGuiNameHere.Y=System.ScreenWidth-gGuiNameHere.Height;


2.)Where do I put the Theora Code?
Check the theora plugin topic, it has a demo.

3.)How do I set a Timer after an Action or if you do not click for 30 seconds the Actor looks from side to side before returning to original position

int timeclick;//place this on top of the global script or use global variables pane instead.
Code: ags

function mouse_click() {//Find the mouse click section on the globalscript.
timeclick=0;
}

function repeatedly_execute() {
timeclick++;
 if (timeclick==1200) {
    timeclick=0;
    //play animation here (didn't really get what you mean exactly..)
    }
}



If you want a More detailed Question for Number 3:
If the Player is Left standing for Thirty Seconds He/She (as in the Actor in the FMV) will move for 5-10 seconds before returning to His/Her Original Position, This has to be done with more than one room and more than once in a room at different positions

I also have another Question, If I made a Chase Scene like PH1, how could I make Theora Play Video, But still make the Player Able to Act, I'd Also Have to have a timer for the chase so after 10 seconds the character would be caught if he/she did not move.

Khris

Sorry, but frankly, you seem to be in way over your head.
You want to recreate pretty sophisticated game mechanics without even basic scripting knowledge.

Read the manual, browse the technical forums, get a feel for how to address a coding problem, create a basic game.
Otherwise, you'll never get far without constant, elaborate help.

SMF spam blocked by CleanTalk