Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / Model won't play animation with if mouseclick()=1

Author
Message
Mr Bigglesworth
16
Years of Service
User Offline
Joined: 4th Mar 2008
Location:
Posted: 22nd Jun 2009 20:07 Edited at: 22nd Jun 2009 20:08
Hi, I have a weapon set up and I have it play a sound and a animation when the player clicks the mouse, but it does't work, here is that section of code. Help would be appreciated.



Dream And Death
18
Years of Service
User Offline
Joined: 21st Feb 2006
Location: The circus! Juggling job, kids and DBPro
Posted: 22nd Jun 2009 21:53
Probably because you are checking for one mouseclick at one fractional thousandth of a second?

You need to keep checking for mouseclick() in a loop.

"You get what everyone gets, you get a lifetime!" - Death, The Sandman Library

First you Dream, then you ... - Neil Gaiman, 2001
Mr Bigglesworth
16
Years of Service
User Offline
Joined: 4th Mar 2008
Location:
Posted: 22nd Jun 2009 22:45
Thanks, it works great now.

Login to post a reply

Server time is: 2024-11-24 05:46:58
Your offset time is: 2024-11-24 05:46:58