Plz help.. need a few Directx scripts

Hi friends i need a few scripts to be used in my dx widgets...

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.....
16,060 views 13 replies
Reply #1 Top
Not an easy answer for this one because it depends on what you want. There are a couple of examples of scripted motion on the WIKI one is by sViz WWW Link and one is by RomanDA. http://wiki.wincustomize.com/wiki/DesktopX:_Scripted_Animations DX also comes with a couple of tutorial objects found here on your own PC C:\Program Files\Stardock\Object Desktop\DesktopX\Objects\Tutorials. This is the file path for XP, I'm not sure where these are stored in Vista.
Reply #3 Top
I need more! ...
1..for random motion of an object
2..planetery motion...
Thanx in advance
Reply #4 Top
i dont know where your going to find a DesktopX script ready made for this. I would do some VBScript or Javascript searches and see what is out there.. DX uses both of these languages.
+1 Loading…
Reply #5 Top
I know desktopx supports both vbscrit and javascript.
But i dont know any.
Reply #6 Top
RomanDA is suggesting you go out and find some.
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 Top
Thanxx for clarification i will search. Wish i would get one.
Reply #8 Top
There are a lot of tutorials and a lot of vb scripts/java scripts out there.. try using this little known thing called GOOGLE.. it can show you results from all over the world.

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 Top
I have been accused of being a little obsessive/compulsive, but I can't stand it...gotta say it...DirectX script? ROMLMFAO What the heck is a directx script? lol  :LOL: 
Reply #10 Top
Did a tut which involved random movement here: LINK

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


If you look above people have given you links to things for DX to do object.rotation.


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
+2 Loading…
Reply #13 Top
Thanks
I am sure this is the one i looked for thanks for the help... :)