Plz help.. need a few Directx scripts
Sunday, May 4, 2008 by superman | Discussion: DesktopX Tutorials
1. for circular motion .... an object that revolves aroound the whole desktop....speed average
2. for very slow motion around top of desktop
Hope u guys help me . Thanxxx in advance.....
Reply #2 Wednesday, May 7, 2008 2:30 PM
I actually wrote a simple one a while ago that I use for troubleshooting some people's DesktopX problems:
http://sd.stardock.com/mike/apps/bouncy.zip
Mike
Reply #3 Saturday, May 17, 2008 2:53 PM
1..for random motion of an object
2..planetery motion...
Thanx in advance
Reply #4 Saturday, May 17, 2008 3:31 PM
Reply #5 Saturday, May 17, 2008 10:58 PM
But i dont know any.
Reply #6 Saturday, May 17, 2008 11:04 PM
Or find something similar and adjust it.
Trying . . and asking for specific help when you get stuck . . will serve you well in the long run.
Reply #7 Sunday, May 18, 2008 6:42 AM
Reply #8 Sunday, May 18, 2008 7:09 AM
If you look above people have given you links to things for DX to do object.rotation.
If you want something to rotate around another object, you could make a transparent circle that is the diameter of the circle you want to rotate around, then place the planet or whatever at the outside edge of this object and make it a "child" of the first circle.
There are plenty of tutorials on how to do all of this.
As for the "random" motion, i would suggest you do a google search on VBSCRTPT RANDOM
and see what it shows you.
As for Planatry Motion, i would suggest a google search on that as well, as i dont think anyone here has made a planet model.
Reply #9 Sunday, May 18, 2008 11:05 AM
Reply #10 Sunday, May 18, 2008 6:17 PM
The relevant block of code (modified):
Sub object_ontimer1
'Get random numbers for object position
Randomize
min = 1
max = system.screenwidth - object.width
randomnum = Int((max-min+1)*Rnd+min)
min2 = 1
max2 = system.screenheight - object.height
randomnum2 = Int((max2-min2+1)*Rnd+min2)
object.move randomnum, randomnum2
End Sub
Agreed. If you want something to go around in a circle, it's probably best to make a large image with the object on one end, and then just rotate the image like in this tutorial: LINK
Actually moving something in a circular motion, I would think, requires some complicated algorithm.
W3Schools Vbscrip
MSDN Vbscript Guide
DX User's Guide
Reply #12 Saturday, July 5, 2008 6:34 PM
hemanherecomes: I've created a dxpack with some rotation and random movement. Hopefully this is what you were looking for:
http://milksama.wincustomize.com/skins.aspx?skinid=4436&libid=3
If you have any questions, please feel free to ask ![]()
Mike
Reply #13 Sunday, July 6, 2008 3:34 AM
I am sure this is the one i looked for thanks for the help...
Please login to comment and/or vote for this skin.
Welcome Guest! Please take the time to register with us.
There are many great features available to you once you register, including:
- Richer content, access to many features that are disabled for guests like commenting on the forums and downloading skins.
- Access to a great community, with a massive database of many, many areas of interest.
- Access to contests & subscription offers like exclusive emails.
- It's simple, and FREE!







Reply #1 Sunday, May 4, 2008 10:05 AM