Page 1 of 1

Billiards, marbles, curling, crokinole with AE?

Posted: Tue Aug 28, 2007 11:59 am
by DaveyJJ
I'm thinking after many years of lurking with Revolution of diving into it and AE assuming that I can (somewhat easily) squeeze the app and AE to do what I'd like. As the post title says, I'm looking to AE to help power 2D games similar in play and physics to classic ones like billiards, marbles, crokinole and curling with an AE-powered version of Revolution.

Is AE capable of these sorts of physics? And as an aside, has AE yet implemented platformer physics (especially involving falling/gravity).

Given the game types I'm looking to create, basic physics things like collisions between circular objects, force, velocity, friction will all be needed. I assume that AE handles those with aplumb. But specifically I suppose I should ask if it can help me ...

1. Circles on a table/floor that can collide with each other, have friction etc
2. Click on the one "shooter" and pull back the mouse so that a line appears opposite the pull to show direction and "force"
3. Release mouse to shoot disk/circle/shooter.

That's all I'm looking to set up right now. Possible?


Posted: Tue Aug 28, 2007 6:10 pm
by xApple

Posted: Tue Aug 28, 2007 10:15 pm
by DaveyJJ
xApple wrote:Possible.
How easily though? Arcade Engine seems to be the right fit ... I've seen demoes of it with lots of marble-like stones banging around.

But what about the specific idea I have ... pardon my horrific attempts at code here

Code: Select all

var force = pulldistance

on MouseDown
get centre of obejct
determine which way and how far the user is dragging
draw a thin line (or stretch a PNG graphic) 180 degrees to that
if the pull is longer than 2 whatevers == 2 whatevers
pull length = pulldistance
end mouseDown

on MouseUp
if pulldistance > 0
shoot piece 180 degree from direction pulled
end mouseUp
How easy is it to implement a simple shoot the puck/marble/ball/crokinole piece?


Posted: Tue Aug 28, 2007 11:13 pm
by Mark
Hi daveyJJ,

This has been done before, without AE though:

Search for Nineball.

AE contains everything you need for the effects you are looking for. The physics you want are called easing in AE. I'd just have a look at the AE documentation and tutorials. The link at the bottom of this page:

should lead you to the tutorials.



Posted: Wed Aug 29, 2007 1:31 am
by DaveyJJ
Thanks Mark and xApple. I'll poke around and be back with newbie questions shortly :D .

If you ever need CSS help just ask!