How can i get a Gui button to talk??

Started by Moridin, Sat 03/07/2004 10:19:03

Previous topic - Next topic

Moridin

For the game I'm working on ive got a rubbish bag which is the inventory button.  But its also alive and can talk.  Hes important to the Hilarity of the game.  Is that even possible? I would love for this to work.  ???

Scorpiorus

What do you mean by 'talk'? Do you want to run a dialog on pressing it?

Hollister Man

Remember the talking tomato in KQ6?  Or the Dangling Participle?  He wants the inventory item to animate.

Anyway, Moridin, I think it would take some major scripting and stuff.  It can work, but are you comfortable enough with scripting to make it work?  I'd be happy to make a demo to see if I could do it, if you want.
That's like looking through a microscope at a bacterial culture and seeing a THOUSAND DANCING HAMSTERS!

Your whole planet is gonna blow up!  Your whole DAMN planet...

Moridin

Yeah your right Hollister man. Thats what i was hopping for.  Now im not sure maybe i shouldnt bother. 
I was going to make it look like the button was talking to you but maybe i can do it another way. I think it might have an animation where he hops out of your pocket and then talks to you as a character. That might end up being less work.  Im not to hot at scripting anyway. :P

Hollister Man

I believe there is a 'GetGUIbuttongraphic' function, which would make it pretty easy to animate, but you would have to make a custom inventory.  Really is more trouble than its worth right now.  Why is he talking to a trashbag anyway?
That's like looking through a microscope at a bacterial culture and seeing a THOUSAND DANCING HAMSTERS!

Your whole planet is gonna blow up!  Your whole DAMN planet...

Scorpiorus

Quote from: Hollister Man on Sun 04/07/2004 03:16:53
Remember the talking tomato in KQ6?Ã,  Or the Dangling Participle?Ã,  He wants the inventory item to animate.
Yeah, I see now. He mentioned a GUI button so I thought he was talking about it and not about an inventory item.

Well, making it as a character seems to be rather appropriate since if the thing can talk then it can be considered to be the alive one. There is only one problem with it - characters are drawn behind GUIs and thus you won't see it unless you place the character aside from the GUI.
There is no a GetGUIbuttongraphic function but an AnimateButton command to make it possible play a talking animation. Still, you need to manually display the speech (on a GUI label, for example).

Edwin Xie

Wouldn't it be easy to get a button to animate and then run a dialog on it or use sounds?
Moving at superhigh speed getting to the planet called Earth. But it is boxed in white......thing.....

Moridin

I think ill leave it for a while, work on something else. Ive got plenty to keep working on.

My game is just really getting started. I plan to have a demo up when i get the basics sorted out. 

Ashen

A while ago, Scorpiorus posted a template for highlighting inventory items on a custom GUI.

http://www.agsforums.com/yabb/index.php?topic=14752.msg180225#msg180225

Maybe this could be adapted to only work over the rubbishbag, and show a GUI with an animatable button on, istead of the empty box. Take a look at the template for a better idea of what I mean. There'd still be a bit of scripting to do, but the bulk would be taken care of.

Just a suggestion for when you get back to this.
I know what you're thinking ... Don't think that.

Moridin

Sweet ill have a look at that.  Id like to get it to work but ill just see. 8)

SMF spam blocked by CleanTalk