Scripts / scripting

Author
Message
pdidy
17
Years of Service
User Offline
Joined: 31st Dec 2006
Location:
Posted: 12th Sep 2015 15:44
testing and working with animation i can animate and update animation with facial talking eye movement ect and standard animation
how would i add a basic sound for speech script using the basic script and anim frames template here.


here is a link to what i have animated
https://www.youtube.com/watch?v=xilA034J04E

Attachments

Login to view attachments
Old Larry
GameGuru TGC Backer
12
Years of Service
User Offline
Joined: 26th Apr 2012
Location: Bucharest, Romania
Posted: 12th Sep 2015 17:35
Try to use the sound slot 1 and put there your sound, because any character use this sound slot for sound.
I found some script by smallg for neutral character, read inside script:

Smile today, tomorrow could be worse

http://bestradiolarry.ro/fps/

"The best forum, game software, operating system or web platform, it's that software which can give you most of the features and speed, not just amazing graphics."
pdidy
17
Years of Service
User Offline
Joined: 31st Dec 2006
Location:
Posted: 13th Sep 2015 09:45 Edited at: 13th Sep 2015 10:15
sorry i am at total loss with scripting
what i am trying to do is get npc to idle with idle animation frames 00,00 to be determined
then on distance to player play animation 00,00 to be determined and play sound .
if possible to return and play animation again with same sound or new sound,
is this possible , just need some sort of template script to get me going and understanding more of scripts.
animation is all set for eye movement lip sync with voice and body animation need no script for that all combined
in 1 animation file lip sync is done on animation with voice wav file. as shown in youtube link above.
smallg
Community Leader
18
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 13th Sep 2015 12:29
you will likely want a character sound set if this is going to become more than 1 sound (as only 1 sound per object is really supported by GG right now - 2 if it's not a character but unless you're having a conversation with a wall...)

however it's much quicker to assign 1 sound without the character sound set so let's just do that first

as i can't see which frame numbers are which in your fpe you need to set the frame numbers yourself in the script
*untested but i believe that's correct*
convo_1sound.lua

life\'s one big game

windows vista ultimate

i5 @3.3ghz, 4gb ram, geforce gtx460, directx 11
pdidy
17
Years of Service
User Offline
Joined: 31st Dec 2006
Location:
Posted: 13th Sep 2015 14:13 Edited at: 13th Sep 2015 15:58
thank you will work on this later after work you are a real star

wish i could script but i gota start someware.

been testing out 3rd person i wish i could script i could work on things like this in the link bellow i am messing with

https://youtu.be/uPOlSpXusyU

better video just need him to shoot
https://www.youtube.com/watch?v=xe-Dm9eUkxc&feature

animations based on the wizard script just edited the walk and run animations

Login to post a reply

Server time is: 2024-05-05 03:18:36
Your offset time is: 2024-05-05 03:18:36