Page 1 of 1
Trying to get a ball rolling
Posted: Tue Aug 07, 2012 11:41 pm
by Joe4991
Hi I'm new to livecode and I'm trying to create a simple physics mechanic that I wish to use in a game. All I'm try to achieve is to get a rock to fall, stop when detecting a floor and then roll down the floor if its sloped. I was hoping someone maybe able to help me with this. Thank you

Re: Trying to get a ball rolling
Posted: Wed Aug 08, 2012 4:52 am
by shaosean
Personally I would recommend checking out animationEngine because he has done most of the work for you (movement, acceleration, collision detection, etc).. There is a little bit of work to using the API, but much less than writing it all by yourself.. Otherwise check out the
move command and
intersect function..
Re: Trying to get a ball rolling
Posted: Wed Aug 08, 2012 11:19 am
by Klaus
Hi Joe,
1. welcome to the forum!
2. additionally to what Sean said, it may be a good idea to get the basics of Livecode first
Check these great stacks:
http://www.runrev.com/developers/lesson ... nferences/
Best
Klaus
Re: Trying to get a ball rolling
Posted: Wed Aug 08, 2012 12:23 pm
by shaosean
Listen to Klaus.. He is <3
Re: Trying to get a ball rolling
Posted: Wed Aug 08, 2012 12:26 pm
by Klaus
I'm smaller than 3? WTF?

Re: Trying to get a ball rolling
Posted: Wed Aug 08, 2012 3:18 pm
by shaosean
Something like that

Re: Trying to get a ball rolling
Posted: Wed Aug 08, 2012 3:35 pm
by Klaus
Re: Trying to get a ball rolling
Posted: Wed Aug 08, 2012 9:34 pm
by sturgis
Hey, you're guaranteed a gold or silver, nothing to complain about there.
Re: Trying to get a ball rolling
Posted: Thu Aug 09, 2012 10:30 pm
by jacque
There are also some nice physics examples in the User Examples stacks (click the icon in the toolbar.) Look for stuff by John Hurley. He wrote a pool game if I remember right, along with some others. Or search there for "physics".