Board index » Present Evidence » Games

Page 1 of 1[ 6 posts ]
 


PyWright HelpTopic%20Title
User avatar

I Make Stuff.

Gender: None specified

Location: USA

Rank: Suspect

Joined: Sat Feb 04, 2017 4:55 pm

Posts: 4

I was working on a PyWright game and was trying to make an "Objection" happen, but when I did, the sound effect would loop the beginning of itself infinitely, until the program was closed.

For example, the speech bubble would show up, but the sound effect would sound like "Obj-obj-obj-obj-obj-obj-obj-obj" until I closed the program.

The code I used is below.


Game Code:

witness
char kira e=gleam-stand
"Hi."

fg cammyobj
pause 5 script

prosecutor
char testcammy e=grin
"This is a test."



And the animation code for the bubble is:


horizontal 1
loops 0
sfx 0 cammyobj.ogg


If anyone knows why this happens, please reply. I couldn't find any other posts talking about this.
Re: PyWright HelpTopic%20Title
User avatar

Ace Culprit

Gender: Male

Location: pilipinas

Rank: Desk Jockey

Joined: Sat Oct 09, 2010 1:57 pm

Posts: 138

LCL wrote:
I was working on a PyWright game and was trying to make an "Objection" happen, but when I did, the sound effect would loop the beginning of itself infinitely, until the program was closed.

For example, the speech bubble would show up, but the sound effect would sound like "Obj-obj-obj-obj-obj-obj-obj-obj" until I closed the program.

The code I used is below.


Game Code:

witness
char kira e=gleam-stand
"Hi."

fg cammyobj
pause 5 script

prosecutor
char testcammy e=grin
"This is a test."



And the animation code for the bubble is:


horizontal 1
loops 0
sfx 0 cammyobj.ogg


If anyone knows why this happens, please reply. I couldn't find any other posts talking about this.


hmm... I think you need a wait command,
since the code will loop back the BOF after reaching the EOF
Image
Re: PyWright HelpTopic%20Title
User avatar

I Make Stuff.

Gender: None specified

Location: USA

Rank: Suspect

Joined: Sat Feb 04, 2017 4:55 pm

Posts: 4

Thanks! I'll test that out!
Re: PyWright HelpTopic%20Title
User avatar

Ace Culprit

Gender: Male

Location: pilipinas

Rank: Desk Jockey

Joined: Sat Oct 09, 2010 1:57 pm

Posts: 138

LCL wrote:
Thanks! I'll test that out!


hmmm.. I think you already placed a wait command already after the obj (pause 5 script)

you can also try removing the sfx command on the animation code then place it to your script

Code:
witness \\(is this fg or bg? or variable)
char kira e=gleam-stand
"Hi."

sfx xx/cammyobj \\xx is the folder where the sfx is
fg cammyobj \\(I advise that you add "anim", so it will look like this "cammyobjanim")
pause 5 script

prosecutor \\(is this fg or bg? or variable)
char testcammy e=grin
"This is a test."


I hope this may work
Image
Re: PyWright HelpTopic%20Title
User avatar

I Make Stuff.

Gender: None specified

Location: USA

Rank: Suspect

Joined: Sat Feb 04, 2017 4:55 pm

Posts: 4

In trying to fix it, I actually figured out the issue came from my objection animation being only 1 frame, while the rest are 11, when I made it an 11 frame animation, suddenly it worked right.
Re: PyWright HelpTopic%20Title
User avatar

Ace Culprit

Gender: Male

Location: pilipinas

Rank: Desk Jockey

Joined: Sat Oct 09, 2010 1:57 pm

Posts: 138

LCL wrote:
In trying to fix it, I actually figured out the issue came from my objection animation being only 1 frame, while the rest are 11, when I made it an 11 frame animation, suddenly it worked right.


great job!
Image
Page 1 of 1 [ 6 posts ] 
 
Display posts from previous:  Sort by  

 Board index » Present Evidence » Games

Who is online
Users browsing this forum: No registered users and 6 guests

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum
Jump to:  
News News Site map Site map SitemapIndex SitemapIndex RSS Feed RSS Feed Channel list Channel list
Powered by phpBB

phpBB SEO