Some simple demos for beginners

59 views
Skip to first unread message

Andrew Garrahan

unread,
May 2, 2008, 7:27:20 AM5/2/08
to APE General
I have put together some simple demos for beginners, check'em out.

Click on http://groups.google.com/group/ape-general/web/getting-started-basic-ape-examples
- or copy & paste it into your browser's address bar if that doesn't
work.

Clark Stevenson

unread,
May 2, 2008, 7:29:31 AM5/2/08
to ape-g...@googlegroups.com
Hey i had a quick glance, thanks for taking the time to do these ill deffo be stopping by later.

2008/5/2 Andrew Garrahan <agar...@gmail.com>:

Olivier Murith

unread,
May 2, 2008, 7:55:13 AM5/2/08
to ape-g...@googlegroups.com
coool ^___^

Thanks a lot in the name of all the morons graphic designers like me who are a bit slow to understand codes



Le 2 mai 08 à 13:29, Clark Stevenson a écrit :

Klaus int. a

unread,
May 2, 2008, 9:25:07 AM5/2/08
to APE General
Hi, just found this... veeeery cool! Have been waiting for that for a
long time - since my math is not what it (never) used to be. So cool
that someone else does that for me! Have a little prob though. Have
tried out the examples and get an error in line 111 in the collision
detecting example:
function checkColl(e:CollisionEvent):void {
1046: Type was not found or was not a compile-time constant:
CollisionEvent.
Am I doing something wrong or?

Koolie

Andrew Garrahan

unread,
May 2, 2008, 11:05:11 AM5/2/08
to APE General
Hi Klaus are you using the class files from the download in the .lib
folder? If you open the file with in the folder it should work. The
file is pointing to the class files in the .lib folder. You might be
getting the Collision event error becuase you using the current
official release alpha( .45 I think ). The collision event is new only
exist in svn trunk, the does that make sense?

陈新

unread,
May 2, 2008, 12:15:09 PM5/2/08
to ape-g...@googlegroups.com
good work ,hope some more harder code

2008/5/2 Olivier Murith <oli...@binocle.ch>:

Klaus int. a

unread,
May 2, 2008, 2:58:09 PM5/2/08
to APE General
Hi Andrew
Must admit that I never installed the APE, just saw it today and
immediately joined the group and downloaded the cornerstone
sourcefiles. I am running them directly from the unzipped folders, but
in Flash CS3. They all work when tested from within Flash (ctrl +
Enter) except from e4 the collision detection.
Are they not compatible with flash cs3 should I use Flex? I have
downloaded the demoversion of the Flex 3 is that compatible or should
it be Flex 2?
Have no experience with Flex, but have been wanting to get my fingers
on with for some time now...
Thanks for your help!

Klaus int. a

unread,
May 3, 2008, 5:12:35 AM5/3/08
to APE General
Hi Andrew

Got it to work now in the Flash IDE.
Publish Settings --> "Flash"tab hit settings button which opens
"Actionsscript 3.0 settings" - here I just changed the classpath to
point to the lib-folder in the downloaded code. Classpath was:
C:\Documents and Settings\AndrewGarrahan\Desktop\Work\dollemporiem
\vectors\ape_a045\source

Which might explain the error (think its somewhered on your pc
Andrew ;P)
The other examples the classpath is simply ./lib which also works for
this example.

Thanks again for the good examplefiles. I will now start the fun
process of learning by tweaking :)

BTW. checked out some of your work - COOL :) especially like the
Biomorphic Jelly Onslaught Game in the flashfriend.org page.

Regards

Klaus

Andrew Garrahan

unread,
May 3, 2008, 6:05:48 AM5/3/08
to APE General
Your right the class path was off, thanks for pointing that out, I
will re-publish the file. You played the Biomorphic Jelly Onslaught
Game lol Cool, here is another game I just finished using the APE -
http://www.coronaryinvaders.com/coronaryinvader.php , this is the main
reason I got a chance to learn how to uses the engine. These demos are
just distilled bits of code from the game.

interfaced

unread,
May 3, 2008, 2:33:19 PM5/3/08
to APE General
This is so great, and that game is really well done. APE has come so
far, looking forward to more implementations!

On May 3, 6:05 am, Andrew Garrahan <agarra...@gmail.com> wrote:
> Your right the class path was off, thanks for pointing that out, I
> will re-publish the file. You played the Biomorphic Jelly Onslaught
> Game lol Cool, here is another game I just finished using the APE -http://www.coronaryinvaders.com/coronaryinvader.php, this is the main

Klaus int. a

unread,
May 5, 2008, 11:50:03 AM5/5/08
to APE General
The coronaryinvaders game is even more cool Andrew - A little scary
too.. maybe one should cut down on the fat!
Have some questions for you or other experts in here. I must say that
I am very new to actionscript 3.0 and the whole OOP concept so if some
of my questions has "Noob" written allover them thats why:
If I have skinned a particle and want to reskin it due to an event .
Like a collisionevent. What can I do? Have tried to use the
setDisplay() method but get an error because it is used on the
e.collidingItem in the eventfunction. Basically I just want to target/
scope the movieclip/sprite that is attached to the particle to be able
to count the number of times it has been hit and change the skinning
accordingly. Seems like e.collidingItem is just a reference that dont
give me the opportunity to alter the content (the sprite)
Thanks for any help provided!

Klaus

Andrew Garrahan

unread,
May 9, 2008, 9:50:28 AM5/9/08
to APE General
Hi Klaus

You can't setDisplay after the object has been created, but you can
have different frames in a movieClip and then switch the frame. I'm
adding another demo over the weekend that will include this method.

Andrew Garrahan

unread,
May 12, 2008, 5:29:21 PM5/12/08
to APE General
I have added 2 more examples illustrating how to handle collision
detection. The first explains how to distinguish between two different
types of particles. The final example shows how to control the
animation on a attached displayObject.

Andrew

travis somerville

unread,
May 13, 2008, 12:42:29 AM5/13/08
to APE General
Those are great examples. Thank you for the beautiful docs. I wish
you could do that for my project.

This is a slightly different tangent, but it is made of many simple
examples woven together to form a multiplayer tank game. I've
mentioned it once before, but I bring it up in case it helps someone
put it all together, and because I've added bullets that show how to
check for collisions.

http://fireleg.com/actionscript3/TankAPE1.1.swf

Enjoy.
Travis Somerville

On May 2, 6:27 am, Andrew Garrahan <agarra...@gmail.com> wrote:
> I have put together some simple demos for beginners, check'em out.
>
> Click onhttp://groups.google.com/group/ape-general/web/getting-started-basic-...

Klaus int. a

unread,
May 20, 2008, 3:13:18 AM5/20/08
to APE General
Thank you Andrew for those new examplefiles.
Really intsructive examples you make! Hope to be able to give
something back to the community my self later on (when Im a little
less noob).
Just to show that I use your examples for something productive like
learning here is a link to a schoolproject I just finished -
http://barnaftiden.dk/dancraft/banner/
The text is in danish. Translation:
1st text "To many balls in the air?" (Danish expression meaning "too
busy")
DanCraft is the name of a Recruiting company and the byline is saying
"An active Coplayer"

Have a new question too: How do I make the APE container dymamically?
have tried this (inside a setupAPE function):
var APE_container:MovieClip = new MovieClip();
APE_container.width = stageWidth // stageWidth hardcoded beacuse
stage.width gives too large number!!!
APE_container.height = stageHeight // ------*---------------
stage.addChild(APE_container)*/
APEngine.init(1/4);
APEngine.container = APE_container;
APEngine.addForce(new VectorForce( false, 0, 0 ) );
APEngine.damping = .97;

this throws an error "reference to possible unknown method..." in the
line APEngine.container = APE_container

I have tried the APE documentation but cant figure out the explanation
given...

Thank you for any help given
Klaus

rbos...@gmail.com

unread,
May 28, 2008, 10:21:31 AM5/28/08
to APE General
Andrew, these are awesome. They look good too (design-wise). I've
actually been surprised at how little beginner information there was
on APE, but I think you definitely got the ball rolling here.

oliver_l1

unread,
Jun 13, 2008, 5:47:18 PM6/13/08
to APE General
Thank you very much Andrew! Great information for beginners like me.

taytus

unread,
Jun 14, 2008, 10:24:18 AM6/14/08
to APE General
Thanks Andrew!!

makc

unread,
Jun 18, 2008, 8:13:27 PM6/18/08
to APE General
I wonder were did negro head go? Or was that my imagination?

On May 2, 2:27 pm, Andrew Garrahan <agarra...@gmail.com> wrote:
> I have put together some simple demos for beginners, check'em out.
>
> Click onhttp://groups.google.com/group/ape-general/web/getting-started-basic-...

Brandon Flowers

unread,
Jun 19, 2008, 9:11:40 AM6/19/08
to ape-g...@googlegroups.com
sorry can you repeat that link again? the last bit is cut off...

http://groups.google.com/group/ape-general/web/getting-started-basic-...

Andrew Garrahan

unread,
Jun 20, 2008, 12:03:31 PM6/20/08
to APE General
Here is the link again - http://groups.google.com/group/ape-general/web/getting-started-basic-ape-examples

If you want to download individual examples - http://www.garrahan.org/ape/

I moved the example with the falling heads in to Example 3: Particle
Generator & Boundary Detection

On Jun 19, 9:11 am, "Brandon Flowers" <brandonflow...@gmail.com>
wrote:
> sorry can you repeat that link again? the last bit is cut off...
>
> http://groups.google.com/group/ape-general/web/getting-started-basic-...
>

makc

unread,
Jun 23, 2008, 5:54:27 PM6/23/08
to APE General
oh, good. I thought that was some example of stupid political
correctness again.

Andrew Garrahan

unread,
Jun 24, 2008, 10:50:32 AM6/24/08
to APE General
lol political correctness, yeah I actual thought people might be oddly
offended by the falling black dudes head example. However I moved it
because it made more sense to be in another example ;-) I'll change
the picture back
since it looks cooler.

On Jun 23, 5:54 pm, makc <makc.the.gr...@gmail.com> wrote:
> oh, good. I thought that was some example of stupid political
> correctness again.
>
> On Jun 20, 7:03 pm, Andrew Garrahan <agarra...@gmail.com> wrote:
>
> > I moved the example with the falling heads in to Example 3: Particle
> >enerator & Boundary Detection

makc

unread,
Jul 24, 2008, 3:04:14 AM7/24/08
to APE General

Andrew Garrahan

unread,
Aug 12, 2008, 12:30:05 AM8/12/08
to APE General
Yeah Big thanks for removing the spam! :D

On Jul 24, 3:04 am, makc <makc.the.gr...@gmail.com> wrote:
> this hopefully undoes all spam links
>
> http://groups.google.com.ua/group/ape-general/web/getting-started-bas...
Message has been deleted

Luca

unread,
Apr 28, 2010, 8:45:47 AM4/28/10
to APE General
Clicking on the link of the examples, I get "Error establishing a
database connection"

--
You received this message because you are subscribed to the Google Groups "APE General" group.
To post to this group, send email to ape-g...@googlegroups.com.
To unsubscribe from this group, send email to ape-general...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/ape-general?hl=en.

Luca

unread,
Jun 11, 2010, 9:34:02 AM6/11/10
to APE General
Working examples can be found here http://www.garrahan.org/ape/

Andrew Garrahan

unread,
Jun 18, 2010, 7:20:30 PM6/18/10
to APE General
Hey Luca I just reposted the examples here -
http://www.garrahan.org/ape_tutorials_Example1_Basic_Building_Blocks.php

sorry the google page is kinda a mess i have no idea were that file
went to...

Leonardo Zimbres

unread,
Jun 17, 2010, 10:30:41 AM6/17/10
to ape-g...@googlegroups.com
Thats very cool, thanks for the heaps up.

2010/6/11 Luca <lucapi...@gmail.com>
Working examples can be found here http://www.garrahan.org/ape/

Andrew Garrahan

unread,
Jun 18, 2010, 7:21:45 PM6/18/10
to APE General
Reply all
Reply to author
Forward
0 new messages