Billiards, marbles, curling, crokinole with AE?

Create fast, sprite powered games with Animation Engine, co-developed with DerBrill Software!

Moderators: heatherlaine, kevinmiller, robinmiller, malte

Post Reply
DaveyJJ
Posts: 15
Joined: Sat Aug 25, 2007 8:38 pm
Location: Waterloo, Ontario
Contact:

Billiards, marbles, curling, crokinole with AE?

Post by DaveyJJ » Tue Aug 28, 2007 11:59 am

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?

Thanks.

xApple
Posts: 113
Joined: Wed Nov 29, 2006 10:21 pm
Location: Geneva

Post by xApple » Tue Aug 28, 2007 6:10 pm

Possible.

DaveyJJ
Posts: 15
Joined: Sat Aug 25, 2007 8:38 pm
Location: Waterloo, Ontario
Contact:

Post by DaveyJJ » Tue Aug 28, 2007 10:15 pm

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?

Thanks!

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Post by Mark » Tue Aug 28, 2007 11:13 pm

Hi daveyJJ,

This has been done before, without AE though:

http://home.infostations.net/jhurley/

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:

http://derbrill.de/developers.php?lang=en

should lead you to the tutorials.

Best,

Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

DaveyJJ
Posts: 15
Joined: Sat Aug 25, 2007 8:38 pm
Location: Waterloo, Ontario
Contact:

Post by DaveyJJ » Wed Aug 29, 2007 1:31 am

Thanks Mark and xApple. I'll poke around and be back with newbie questions shortly :D .

If you ever need CSS help just ask!

Post Reply

Return to “Animation Engine”