PDA

View Full Version : What am I doing wrong here?


beachbum111111
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?

sfunk
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

beachbum111111
08-26-2012, 09:59 PM
How do I get it to loop smoothly then?

sfunk
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