Jump to content


Photo

Desktop Physics


  • Please log in to reply
132 replies to this topic

#1 hanson

hanson

    GMC Member

  • GMC Member
  • 444 posts
  • Version:GM8

Posted 06 February 2007 - 02:26 AM

Desktop Physics is a fun little toy I'm making to add physics to your desktop.
Desktop Physics allows you to throw the icons around on your desktop by clicking and dragging them. I am working on adding support for throwing windows*. I also plan to add an option to add gravity and/or less friction to the cursor*. I would post a screen shot, but a still image doesn't capture the movement :(
You can find the exe file with .zip compression at http://home.comcast....cs_temptest.zip
Thanks to PeglegJimmy for the Vista exe version here,
I have also uploaded the source gm6: Download source_dist.zip

*Taking a break ;)

Rember to turn off auto-arrange and grid snap, or it will not work :( .


File size: 1 MB compressed
Changes resolution: No. Does change refresh frequency.
GM version: GM6 PRO
Windows version: I have tested it on 2000 and XP, and the Vista version also works on Vista. No guarantees for other versions. If you test it on other versions, please tell me if it works so that I can add it to this list.

Known bugs:
*random moving icons.
*Creating or deleting an icon during use will generate an error.
*If you move the icon super fast, it doesn't throw


Please reply with any suggestions or comments.

Edited by hanson, 08 February 2008 - 02:48 PM.

  • 0

#2 Mr. Limbojello

Mr. Limbojello

    Skater

  • GMC Member
  • 388 posts

Posted 06 February 2007 - 02:28 AM

Thats pretty sick. You should try to make the physics a bit more smooth however.
  • 0

#3 hanson

hanson

    GMC Member

  • GMC Member
  • 444 posts
  • Version:GM8

Posted 06 February 2007 - 02:30 AM

I'll work on the physics :( I might eventually us that GM Physics dll.
  • 0

#4 gynlorf

gynlorf

    GMC Member

  • New Member
  • 83 posts

Posted 06 February 2007 - 02:36 AM

NOOOO!!! my thousands of icons are screwed up!!!
  • 0

#5 picc84

picc84

    GMC Member

  • New Member
  • 438 posts

Posted 06 February 2007 - 02:38 AM

^^ he's right! It doesent put them back!!! That realy messed me up bad!
  • 0

#6 hanson

hanson

    GMC Member

  • GMC Member
  • 444 posts
  • Version:GM8

Posted 06 February 2007 - 02:39 AM

You mean they are just rearanged from you throwing them right? If so, right click on the desktop > arange icons > auto arrange. I'll try and add a feature to put them back when it ends.

I'll add putting them back next release(probably tommarow). Sorry about that.

Edited by hanson, 06 February 2007 - 02:40 AM.

  • 0

#7 gynlorf

gynlorf

    GMC Member

  • New Member
  • 83 posts

Posted 06 February 2007 - 02:45 AM

i can't just do auto arrange. i have two screens. i have one for my commonly used icons, and one for some other important stuff. Thats not why i have 2 screens, but thats for my desktop. So now i ended up with icons all on one screen and i couldn't throw anything anywhere
  • 0

#8 jblund

jblund

    GMC Member

  • New Member
  • 93 posts

Posted 06 February 2007 - 10:18 AM

Very nice a .gmd gonna be released at some point ?
  • 0

#9 dawesbr

dawesbr

    GMC Member

  • New Member
  • 434 posts

Posted 06 February 2007 - 10:27 AM

err WHAT THE?! i tried opening it and it was just a line so i clicked and it said bye and it repeated that message for ages, so i tried extracting to the desktop. woohay, something else happened! the screen flickered, and then stopped. i thought, yay, now i can throw my desktop...so i dragged IE, which i felt like hurling across the room and proclaiming firefox king, and dragged it quickly and let go. all the icons flickered, and randomly ordered, and kept doing this until i closed the program...how do u use this?!
  • 0

#10 hanson

hanson

    GMC Member

  • GMC Member
  • 444 posts
  • Version:GM8

Posted 06 February 2007 - 11:32 AM

What operating system do you use dawesbr?

@jblund thanks. I may release the source sometime.
  • 0

#11 badgamemaker

badgamemaker

    GMC Member

  • New Member
  • 337 posts

Posted 06 February 2007 - 01:24 PM

Um, it's okay. You did a good enough job for me!
  • 0

#12 Mordi

Mordi

    Maker of Menus

  • New Member
  • 3635 posts

Posted 06 February 2007 - 06:43 PM

Wow, this is really cool! I recommend turning off "adjust to grid" on the icons. :(
  • 0

#13 headless lizard

headless lizard

    GMC Member

  • New Member
  • 258 posts

Posted 06 February 2007 - 06:51 PM

err WHAT THE?! i tried opening it and it was just a line so i clicked and it said bye and it repeated that message for ages, so i tried extracting to the desktop. woohay, something else happened! the screen flickered, and then stopped. i thought, yay, now i can throw my desktop...so i dragged IE, which i felt like hurling across the room and proclaiming firefox king, and dragged it quickly and let go. all the icons flickered, and randomly ordered, and kept doing this until i closed the program...how do u use this?!

<{POST_SNAPBACK}>

It did this for me too, another program i downloaded ages ago, (not made with gamemaker) did the exact same thing... is this ment to have a dll?
  • 0

#14 headless lizard

headless lizard

    GMC Member

  • New Member
  • 258 posts

Posted 06 February 2007 - 06:52 PM

eek! Sorry for double post!

Edited by headless lizard, 06 February 2007 - 06:53 PM.

  • 0

#15 borisjake

borisjake

    GMC Member

  • New Member
  • 269 posts

Posted 06 February 2007 - 07:32 PM

It put back my icons :(. Just one problem. Why didn't i get the chance to throw it? XD they all just randomly went all over the screen.
  • 0

#16 hanson

hanson

    GMC Member

  • GMC Member
  • 444 posts
  • Version:GM8

Posted 06 February 2007 - 09:01 PM

@borisjake: Try throwing an icon before doing anything with the window. The window doesn't need focus to work. Tell me if that works. I'll investigate this problem on my computer some also.

@headless lizard: Desktop Physics does use a dll that I made to move the icons and windows. I used the include thing in Game Maker and extract it to the temp dir. I also use mouse solutions dll.

@Mordi: Thanks! I forgot to mention to turn snap to grid off when your using Windows XP :( .

EDIT: Good news! I was able to replicate the random icon movement bug. Even better news! I was able to fix it.

Edited by hanson, 06 February 2007 - 09:58 PM.

  • 0

#17 OpticalLiam

OpticalLiam

    GMC Member

  • New Member
  • 782 posts

Posted 06 February 2007 - 10:08 PM

Completely useless.

That's why it's so fun!

Seriously though, the physics need a lot of work - but the idea is there. I've never seen something like this either, is the idea original?

Also to people who can't get it to work (ie. the icons just flicker), you need to right click on the desktop, then go into the 'Arrange Icons By' menu, then just untick 'Auto Arrange' and 'Align to Grid'.
  • 0

#18 mr.cooljamesbond

mr.cooljamesbond

    GMC Member

  • New Member
  • 1256 posts

Posted 06 February 2007 - 10:17 PM

does not do anything to my desktop, XP home edition
  • 0

#19 headless lizard

headless lizard

    GMC Member

  • New Member
  • 258 posts

Posted 06 February 2007 - 10:18 PM

I did Optical Liams thing and it worked, however they did randomly move at first

What would be awsome would be if they could fall, say with gravity and then bounce and rotae and stuff, is that possible? It would be awsome!

Edited by headless lizard, 06 February 2007 - 10:29 PM.

  • 0

#20 marineman215

marineman215

    GMC Member

  • New Member
  • 148 posts

Posted 06 February 2007 - 10:20 PM

WHOA!! how did you do that?!?! i like it. Please release the source.
BTW i'm running windows XP!
~marineman215
  • 0

#21 dazappa

dazappa

    GMC Member

  • New Member
  • 98 posts

Posted 06 February 2007 - 10:34 PM

Didn't work for me, i'm using windows 2000 =/ also it got runtime error - abnormal program termination.
  • 0

#22 hanson

hanson

    GMC Member

  • GMC Member
  • 444 posts
  • Version:GM8

Posted 06 February 2007 - 11:20 PM

@OpticalLiam: I agree with you that the physics need a lot of work. The idea is original.

@mr.cooljamesbond: You did click and drag an icon, right?

@headless lizard: They still move randomly? did you get the updated download? I have added gravity before, but it was soooooo slow. I don't think I could rotate the icons with out changing them every step, which would take a long time. I am planning on there being a way to set friction/gravity/etc. So that you can optimize it to your systems speed.

@marineman215: I use a dll to get/modify the icons names. I'm still deciding whether I'm going to release the source.

@dazappa: Did you try re-running it after you got the error? I got that once before, and I just ran it again and it worked.

Thanks for the comments/suggestions :( .

P.S. I think I almost have windows working!
  • 0

#23 dazappa

dazappa

    GMC Member

  • New Member
  • 98 posts

Posted 06 February 2007 - 11:31 PM

OK, it started working, but...is it supposed to be very extremely slow? Cause it is.
  • 0

#24 hanson

hanson

    GMC Member

  • GMC Member
  • 444 posts
  • Version:GM8

Posted 07 February 2007 - 12:09 AM

It works 30 FPS with only one icon being thrown for me, but multiple icons moving slow it down. I guess it all depends on your computer. How is the speed for everybody else?
  • 0

#25 Anti

Anti

    GMC Member

  • New Member
  • 521 posts

Posted 07 February 2007 - 01:37 AM

dawesbr

You had auto arrange on.

Before the game starts, why don't you tell people a message, such as : "Turn auto arrange\ auto align off!"

That'd have helped lots.

Besides that, I thought it was AWESOME.

A really funny program. Be sure to add gravity soon.

BTW: Speed for me is usualy 20-30.

Gets to about 18 if I throw ALL my icons.

Message me when a new version comes out And I can bug test it for you. :)

Edited by Anti, 07 February 2007 - 01:38 AM.

  • 0

#26 Mgamerz

Mgamerz

    Lazy Developer

  • New Member
  • 1289 posts

Posted 07 February 2007 - 01:45 AM

What would really be awesome is if you had the thing kinda like Screensaver wars... where IE and firefox went head2head in a trench fight with IE having folders and Firefox having Internet connection come from his side and they try to kill each other, but you can control any one of their guys....
  • 0

[StarBord: the First Front]III[Open Source 360° Topdown Shooter]IIIOpen Source Scrolling MenuIIIOpen Source Joystick Controls
Have something you want to figure out how it works? Try a test bed. They are fast to load, and great for experiments. And they are FTW.

#27 Anti

Anti

    GMC Member

  • New Member
  • 521 posts

Posted 07 February 2007 - 02:08 AM

Er...I got a microsoft windows visual run basic error...now firefox doesn't start, winzip doesn't start....interesting.

Everything is back now...

But that was still...interesting.

Edited by Anti, 07 February 2007 - 02:09 AM.

  • 0

#28 killingcheese

killingcheese

    GMC Member

  • New Member
  • 77 posts

Posted 07 February 2007 - 02:29 AM

Complete copy of gwabs :'( good idea...but someone beat you to it...with great software http://www.gwabs.com
  • 0

#29 gymnastdaniel5

gymnastdaniel5

    Roboleader

  • GMC Member
  • 1018 posts

Posted 07 February 2007 - 02:32 AM

err WHAT THE?! i tried opening it and it was just a line so i clicked and it said bye and it repeated that message for ages, so i tried extracting to the desktop. woohay, something else happened! the screen flickered, and then stopped. i thought, yay, now i can throw my desktop...so i dragged IE, which i felt like hurling across the room and proclaiming firefox king, and dragged it quickly and let go. all the icons flickered, and randomly ordered, and kept doing this until i closed the program...how do u use this?!

<{POST_SNAPBACK}>

Me too it just flickered a whole bunch then stopped and the program died please fix it if at all possible...
  • 0

#30 hanson

hanson

    GMC Member

  • GMC Member
  • 444 posts
  • Version:GM8

Posted 07 February 2007 - 02:38 AM

Complete copy of gwabs :'(  good idea...but someone beat you to it...with great software  http://www.gwabs.com

<{POST_SNAPBACK}>


Never seen gwabs before. Desktop Physics is meant to be useable during normal computer use though. It doesn't use a screen capture of the desktop like I belive gwabs does.

@gymnastdaniel5: I'll see what I can do. I'm not sure what the problem is though. Are grid snap and auto-arange disabled?

@Anti: I have no idea why/how that happened :)

Edited by hanson, 07 February 2007 - 02:41 AM.

  • 0

#31 gymnastdaniel5

gymnastdaniel5

    Roboleader

  • GMC Member
  • 1018 posts

Posted 07 February 2007 - 02:51 AM

I did what you said and it worked it would be cool for an editable though...
THIUS RULES NWOW )

Edited by gymnastdaniel5, 07 February 2007 - 02:57 AM.

  • 0

#32 Anti

Anti

    GMC Member

  • New Member
  • 521 posts

Posted 07 February 2007 - 02:51 AM

I wouldn't worry about what happened to me, my computer is screwed up a bit. :)
  • 0

#33 XxSyThExX

XxSyThExX

    GMC Member

  • New Member
  • 183 posts

Posted 07 February 2007 - 04:13 AM

This is just brilliant! Except to the random movement it was Good! minigames perhaps?
  • 0
"There are infinite-less possibilities to improving something, but the only problem is setting the boundaries to those possibilities."

~Yours Truly, Luis Cotton

#34 NEED HELP sorta

NEED HELP sorta

    GMC Member

  • New Member
  • 1501 posts

Posted 07 February 2007 - 04:16 AM

Now that, is awesome pants.
More features would be cool but, thats pretty awesome already.
  • 0
http://img159.images...025/scr1ea8.png
http://img374.images...944/scr2hf6.png
Alagaesia Online - Not yet released.

You can bring the release date closer, by helping at the following topics:
Intro Narration
Music Topic

#35 Wiggles

Wiggles

    <Your Ad Here>

  • New Member
  • 323 posts

Posted 07 February 2007 - 04:56 AM

Very original. I agree with everyone who says the physics are crappy. The Icons don't get put back to their correct positions when I tell it to put them back, but this happens with any program that messes with my icons (Iconpackager for example).
  • 0

#36 l Game Maker l

l Game Maker l

    GMC Member

  • New Member
  • 51 posts

Posted 07 February 2007 - 05:21 AM

AHHHHHHHHHHHHHHHHHHHHHHH!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

wait.. that was here.. and that one was over there.. where the hell is my recycle bin?????
  • 0

#37 Whisper

Whisper

    The Lesser Sound

  • New Member
  • 198 posts

Posted 07 February 2007 - 08:41 AM

Now, this seems very fun except if I use it my parents might not like the new desktop arrangements...fun...live...fun...live...
...for now I will live but I will be sure to test soon!

Edited by Whisper, 07 February 2007 - 08:41 AM.

  • 0

#38 celebraces

celebraces

    GMC Member

  • GMC Member
  • 956 posts

Posted 07 February 2007 - 12:50 PM

I'm taking this to school :)
  • 0

#39 dawesbr

dawesbr

    GMC Member

  • New Member
  • 434 posts

Posted 07 February 2007 - 08:40 PM

ok, got it,


thats OMega-uber-ultra-awesome. great one!
  • 0

#40 Elpizo

Elpizo

    GMC Member

  • GMC Member
  • 336 posts

Posted 07 February 2007 - 08:56 PM

Ohhhhhh, GNARLY!
A few things: Trying to drag normally makes 'em throw real fast, and if you drag it into another window it can't find the icon and freaks out.
  • 0

#41 pujal

pujal

    Free Fantasy

  • New Member
  • 197 posts

Posted 07 February 2007 - 11:30 PM

The physics were choppy and unrealistic and slow.
  • 0

#42 ADDJenius

ADDJenius

    GMC

  • GMC Member
  • 180 posts

Posted 08 February 2007 - 12:42 AM

Here's what happens with the physics
Let's say px and py is where it is before you drag
x and y is where it is when you let go
When you let go, the direction is (px,py,x,y), and the speed is some fraction of the distance.

possible solution? well.. instead of the direction being px,py,x,y based on where it is before drag, do px,py after drag..



Very good job! It's pretty fun throwing stuff around

to pujal
it isnt the physics that's supposed to be impressive.. you could easily make a throwable object in a gm window.
the impressive part is in that you can interact with the desktop

Edited by ADDJenius, 08 February 2007 - 12:46 AM.

  • 0

#43 Stubbjax

Stubbjax

    RandomGuy General

  • GMC Member
  • 4208 posts
  • Version:GM8

Posted 08 February 2007 - 05:57 AM

I ran it and it is pretty cool!! If only it threw it at the same speed as the mouse is going but its friction is 0.1 or something... (does it even use friction? cos it is a dll...)
  • 0
2qi1d8l.jpg

#44 Qjet

Qjet

    GMC Member

  • New Member
  • 260 posts

Posted 08 February 2007 - 06:45 AM

this is very very cool

but word of warning (i did not report fyi) that sub OS's and stuff like this is basicly banned on the gamemaker forums, i think its cool, but its dangerous stuff .(
  • 0

#45 BazookaDude

BazookaDude

    GMC Member

  • New Member
  • 89 posts

Posted 08 February 2007 - 02:18 PM

Good job! There are a few bug where it doesn't throw, but it's works well. But make sure you turn off align to grid, I had to figure that out. And sometimes it doesn't put your icon where it should.

@Qjet: This isn't considered a sub-os...
  • 0

#46 hanson

hanson

    GMC Member

  • GMC Member
  • 444 posts
  • Version:GM8

Posted 08 February 2007 - 02:36 PM

Thanks for the comments and replies :)

I am working on making it take the throw speed into account. The next version will(I think) have a way to set friction, gravity, and maximim throw speed.
  • 0

#47 Meanz

Meanz

    GMC Member

  • New Member
  • 157 posts

Posted 08 February 2007 - 02:42 PM

Arrrghhhh... This is Bad things... it made my screen turn off. -.-'

i had to restart computer,
im using Win Xp Pro

WDF U MAKING A VIRUS?
  • 0

#48 hanson

hanson

    GMC Member

  • GMC Member
  • 444 posts
  • Version:GM8

Posted 08 February 2007 - 03:01 PM

Arrrghhhh... This is Bad things... it made my screen turn off. -.-'

i had to restart computer,
im using Win Xp Pro

WDF U MAKING A VIRUS?

<{POST_SNAPBACK}>

No I'm not making a virus. As you can see from the above replies, nobody else has encountered this. Are you sure it was my program?
  • 0

#49 Meanz

Meanz

    GMC Member

  • New Member
  • 157 posts

Posted 08 February 2007 - 06:41 PM

Arrrghhhh... This is Bad things... it made my screen turn off. -.-'

i had to restart computer,
im using Win Xp Pro

WDF U MAKING A VIRUS?

<{POST_SNAPBACK}>

No I'm not making a virus. As you can see from the above replies, nobody else has encountered this. Are you sure it was my program?

<{POST_SNAPBACK}>



I double tested so "Yes" its your program
  • 0

#50 hanson

hanson

    GMC Member

  • GMC Member
  • 444 posts
  • Version:GM8

Posted 08 February 2007 - 06:44 PM

Meanz: I'm sorry that is happening. I have no idea what is going on. That has never happened to me. Have you tried other GM games? Do they work?
  • 0