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.

FPSC Classic Scripts / Animated HUD

Author
Message
Claws
18
Years of Service
User Offline
Joined: 5th Jun 2006
Location: Brazil
Posted: 13th Jan 2009 14:04
I'm using the following script to build an animated HUD for my game.



However... hmm... the script isn't working. The very same image is still displaying on-screen. Any ideas?
xplosys
18
Years of Service
User Offline
Joined: 5th Jan 2006
Playing: FPSC Multiplayer Games
Posted: 13th Jan 2009 14:25 Edited at: 13th Jan 2009 14:26
I don't see anything wrong with the logic, but I think your timing may be an issue. I think you have the timer set too short and the fadeout is taking longer than the changeover.

Anyway, try something like 1000 intervals or more and see what happens.

Best.

Claws
18
Years of Service
User Offline
Joined: 5th Jun 2006
Location: Brazil
Posted: 13th Jan 2009 14:32 Edited at: 13th Jan 2009 14:32
Can i disable the fade out and make direct transitions between the huds? Also, what's the minimum possible time interval?
xplosys
18
Years of Service
User Offline
Joined: 5th Jan 2006
Playing: FPSC Multiplayer Games
Posted: 13th Jan 2009 14:39
Disabling the fadeout should help. Just use hudhide instead. I guess you are trying to make fluid motion, but with 5 images you are looking at a fraction of a second of motion. You'll just have to experiment.

Best.

Claws
18
Years of Service
User Offline
Joined: 5th Jun 2006
Location: Brazil
Posted: 13th Jan 2009 14:41
I'm not having any success. The HUD is still static. I made a few modifications and removed the fade... nothing. Could you try on your end?
xplosys
18
Years of Service
User Offline
Joined: 5th Jan 2006
Playing: FPSC Multiplayer Games
Posted: 13th Jan 2009 14:52
You might try getting rid of the # sign in the code. Use hud1, hud2, etc.

Best.

Claws
18
Years of Service
User Offline
Joined: 5th Jun 2006
Location: Brazil
Posted: 13th Jan 2009 15:00
Still not working.

Maybe it's not that how we display animated HUDs?
xplosys
18
Years of Service
User Offline
Joined: 5th Jan 2006
Playing: FPSC Multiplayer Games
Posted: 13th Jan 2009 15:04
Maybe this will help. It's not for a hud, but perhaps will apply.

Best.

Claws
18
Years of Service
User Offline
Joined: 5th Jun 2006
Location: Brazil
Posted: 13th Jan 2009 15:06
Here's my modified version. I already checked the animated menu script, but... that makes me even more sad about this, because, they're almost the same in the "animated logic".

Claws
18
Years of Service
User Offline
Joined: 5th Jun 2006
Location: Brazil
Posted: 13th Jan 2009 22:13
This isn't funny anymore, lol. I can't "animate" the hud. I made a script from scratch, based on the animated menu script. Original, modified and custom versions don't work.

Can any script guru help me out here? I might have missed something very stupid.
meteorite
18
Years of Service
User Offline
Joined: 19th Nov 2006
Location: The Capital Wasteland
Posted: 13th Jan 2009 22:26
My best bet is check you path, make sure it's right


*slap!*
Quiet yourself, think before posting, and maybe you won't be as ignorant as you seem.
Hockeykid
DBPro Tool Maker
17
Years of Service
User Offline
Joined: 26th Sep 2007
Location:
Posted: 13th Jan 2009 22:26 Edited at: 13th Jan 2009 22:27
try this




]
Conjured Entertainment
AGK Developer
19
Years of Service
User Offline
Joined: 12th Sep 2005
Location: Nirvana
Posted: 13th Jan 2009 23:47 Edited at: 14th Jan 2009 00:15
If you are looping through then you need to unshow the other huds or all you will see is the one on top. (appearing static)

Try this...



The problem there though is that we did not use a hud0 for 0 to 100 on the timer, so it shoud have been like so to loop it...



...because we don't want a void at the start.

Or you could try this if that doesn't work.... (remove the hud prior to the one displayed)



but then we have another problem of not waiting for the last image so...



The last one should loop.

Dar13
16
Years of Service
User Offline
Joined: 12th May 2008
Location: Microsoft VisualStudio 2010 Professional
Posted: 14th Jan 2009 01:52 Edited at: 14th Jan 2009 01:53
umm CE why does it say Dar13's scripts instead of Artificial Intelligence. It's not that i don't mind the credit or anything just wondering

I know not with what weapons WWIII will be fought but WWIV will be fought with sticks and stones-Albert Einstein
Claws
18
Years of Service
User Offline
Joined: 5th Jun 2006
Location: Brazil
Posted: 14th Jan 2009 15:29
Thank you so much, guys. Really.

Conjured Entertainment, your script works perfectly. I think i understood why the old one wasn't working. Thanks for the lesson too.
Conjured Entertainment
AGK Developer
19
Years of Service
User Offline
Joined: 12th Sep 2005
Location: Nirvana
Posted: 14th Jan 2009 19:07 Edited at: 14th Jan 2009 19:09
Quote: "umm CE why does it say Dar13's scripts instead of Artificial Intelligence. It's not that i don't mind the credit or anything just wondering"

Because your script was here already, so I modified it rather than making one from scratch.
I started with the one here and modified so everyone could see what was going on.
So, ask him why it was here, not me. (first post)

Quote: "Conjured Entertainment, your script works perfectly. I think i understood why the old one wasn't working. Thanks for the lesson too. "

The forums are a learning experience.
Glad I could help.



Dar13
16
Years of Service
User Offline
Joined: 12th May 2008
Location: Microsoft VisualStudio 2010 Professional
Posted: 14th Jan 2009 20:04
ah ok. good script anyways

I know not with what weapons WWIII will be fought but WWIV will be fought with sticks and stones-Albert Einstein

Login to post a reply

Server time is: 2024-11-24 19:05:27
Your offset time is: 2024-11-24 19:05:27