Plz help.. need a few Directx scripts

Sunday, May 4, 2008 by superman | Discussion: DesktopX Tutorials

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.....
BigDogBigFeet
Reply #1 Sunday, May 4, 2008 10:05 AM
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.
milksama
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

superman
Reply #3 Saturday, May 17, 2008 2:53 PM
I need more! ...
1..for random motion of an object
2..planetery motion...
Thanx in advance
RomanDA
Reply #4 Saturday, May 17, 2008 3:31 PM
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.
superman
Reply #5 Saturday, May 17, 2008 10:58 PM
I know desktopx supports both vbscrit and javascript.
But i dont know any.
ZubaZ
Reply #6 Saturday, May 17, 2008 11:04 PM
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.
superman
Reply #7 Sunday, May 18, 2008 6:42 AM
Thanxx for clarification i will search. Wish i would get one.
RomanDA
Reply #8 Sunday, May 18, 2008 7:09 AM
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.
PuterDudeJim
Reply #9 Sunday, May 18, 2008 11:05 AM
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   
sViz
Reply #10 Sunday, May 18, 2008 6:17 PM
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
superman
Reply #11 Monday, June 9, 2008 10:37 PM
Thanx sViz & Roman DA & milksama.
milksama
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

superman
Reply #13 Sunday, July 6, 2008 3:34 AM
Thanks
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!



web-wc01