Trying to get a ball rolling

Creating Games? Developing something for fun?

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
Joe4991
Posts: 1
Joined: Sun Aug 05, 2012 2:39 pm

Trying to get a ball rolling

Post 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 :)
shaosean
Posts: 906
Joined: Thu Nov 04, 2010 7:53 am

Re: Trying to get a ball rolling

Post 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..
Klaus
Posts: 14324
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Trying to get a ball rolling

Post by Klaus »

Hi Joe,

1. welcome to the forum! :D
2. additionally to what Sean said, it may be a good idea to get the basics of Livecode first 8)

Check these great stacks:
http://www.runrev.com/developers/lesson ... nferences/


Best

Klaus
shaosean
Posts: 906
Joined: Thu Nov 04, 2010 7:53 am

Re: Trying to get a ball rolling

Post by shaosean »

Listen to Klaus.. He is <3
Klaus
Posts: 14324
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Trying to get a ball rolling

Post by Klaus »

I'm smaller than 3? WTF? 8)
shaosean
Posts: 906
Joined: Thu Nov 04, 2010 7:53 am

Re: Trying to get a ball rolling

Post by shaosean »

Something like that :-P
Klaus
Posts: 14324
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Trying to get a ball rolling

Post by Klaus »

:D :D :D
sturgis
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 1685
Joined: Sat Feb 28, 2009 11:49 pm

Re: Trying to get a ball rolling

Post by sturgis »

Hey, you're guaranteed a gold or silver, nothing to complain about there.
jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7423
Joined: Sat Apr 08, 2006 8:31 pm
Contact:

Re: Trying to get a ball rolling

Post 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".
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com
Post Reply