Alice Community  

Go Back   Alice Community > General Discussion > Questions and Comments

Reply
 
Thread Tools Display Modes
What am I doing wrong here?
Old
beachbum111111
Senior Member
 
beachbum111111's Avatar
 
Status: Offline
Posts: 852
Join Date: Feb 2010
Location: e
Default What am I doing wrong here? - 08-25-2012, 10:02 PM

I am making gravity in Alice for a simple test and it isn't exactly working. The cube goes down and get stopped by the spheres, but when you move the spheres away from the cube or vice versa the cube doesn't move down any more, Alice doesn't have an error and I have checked the code multiple times but no avail. Can someone help me?
Attached Files
File Type: a2w Gravity test.a2w (326.2 KB, 3 views)


"Don't lead me into temptation I can find it myself"
   
Reply With Quote
Old
sfunk
Senior Member
 
sfunk's Avatar
 
Status: Offline
Posts: 1,112
Join Date: Mar 2011
Location: I don't know
Default 08-26-2012, 09:15 PM

well the solution is pretty easy for this, the duration you set for both the downward and upward force are to large of numbers, and alice doesn't run like you think it would, it does the downward action first, then when the collision happens, the upward force will start, which since you had it set to 90999999999999 seconds or whatever, you have to wait that long until the cube returns back to the ground, so simple solution, make the duration about .5 or 1 second


If you are stuck on a project, check out the tutorials I made here at this link:

http://alice.org/community/showthread.php?p=36778#post36778

There are lots of tutorials on it so far, including some youtube videos, check it out

Or..

Go to my youtube channel to check out my alice 2.2 tutorials I have there..

http://www.youtube.com/user/sfunk1992?feature=mhsn
   
Reply With Quote
Old
beachbum111111
Senior Member
 
beachbum111111's Avatar
 
Status: Offline
Posts: 852
Join Date: Feb 2010
Location: e
Default 08-26-2012, 09:59 PM

How do I get it to loop smoothly then?


"Don't lead me into temptation I can find it myself"
   
Reply With Quote
Old
sfunk
Senior Member
 
sfunk's Avatar
 
Status: Offline
Posts: 1,112
Join Date: Mar 2011
Location: I don't know
Default 08-27-2012, 01:26 AM

try out different methods, I can't remember where it was posted but someone did a good job at making platforms using gravity, try finding that example. or just come up with something else on your own


If you are stuck on a project, check out the tutorials I made here at this link:

http://alice.org/community/showthread.php?p=36778#post36778

There are lots of tutorials on it so far, including some youtube videos, check it out

Or..

Go to my youtube channel to check out my alice 2.2 tutorials I have there..

http://www.youtube.com/user/sfunk1992?feature=mhsn
   
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



Copyright ©2019, Carnegie Mellon University
Alice 2.x 1999-2012, Alice 3.x 2008-2012, Carnegie Mellon University. All rights reserved.