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 » Tue Aug 07, 2012 11:41 pm

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 » Wed Aug 08, 2012 4:52 am

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: 13829
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

Re: Trying to get a ball rolling

Post by Klaus » Wed Aug 08, 2012 11:19 am

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 » Wed Aug 08, 2012 12:23 pm

Listen to Klaus.. He is <3

Klaus
Posts: 13829
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

Re: Trying to get a ball rolling

Post by Klaus » Wed Aug 08, 2012 12:26 pm

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 » Wed Aug 08, 2012 3:18 pm

Something like that :-P

Klaus
Posts: 13829
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

Re: Trying to get a ball rolling

Post by Klaus » Wed Aug 08, 2012 3:35 pm

: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 » Wed Aug 08, 2012 9:34 pm

Hey, you're guaranteed a gold or silver, nothing to complain about there.

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7237
Joined: Sat Apr 08, 2006 8:31 pm
Location: Minneapolis MN
Contact:

Re: Trying to get a ball rolling

Post by jacque » Thu Aug 09, 2012 10:30 pm

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

Return to “Games”