Quantcast
Channel: VBForums - Game Demos
Viewing all articles
Browse latest Browse all 56

World of Warcraft Spell Cooldown Effect [VB.Net 2008, 2010 & VB6][DirectX]

$
0
0
I had this code for quite sometime, and it was a royal pain to figure it out on my own. Because there is no source code on the internet other than mine that reveals this effect. For those who havent played World of Warcraft, your user interface that has a bunch of attacks, spells, and/or healing ability icons. When you click on one, depending on the ability, itll do one of two things. Either do a global cooldown, which prevents you from pressing any icon for a fraction of a second, or do that as well as put that ability on a cooldown for a certain duration of time. As its on cooldown, regardless of the type of cooldown, the entire icon will darken, and you'll see a dial spin around slowly lighting the icon back up. And here is how I did it. I used 2 squares. One square for the spell icon. And another that simply darkens it, only its rotated 45 degrees as a diamond. That dark square diamond is split into 8 polygons like a pizza, and its clipped around the regular square, so you can only see it within that square. I then shrink one polygon of the diamond pie one by one which coincides with realtime depending on what value you put for the cooldown amount until the time expires. Its accurate down to the very fraction of a millisecond through and through. If you want 10 minute cooldown, itll do it precisely. Or how bout 0.5 seconds. Not only did I do it using VB.Net, but also VB6. So here are both versions open source. Enjoy :bigyello:



Note: Niya claims that the VB.Net version of the spell cooldown had issues on his or her computer and not the VB6 one cause that one worked. I think its a she. But yet it works perfectly on mine. So if it looks like these pics in this link let me know: Possible Anomalies
Attached Files

Viewing all articles
Browse latest Browse all 56

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>