# Sidescrolling Game Engine Demos

**URL:** <https://forum.kirupa.com/t/sidescrolling-game-engine-demos/256068>\
**Category:** programming\
**Created:** [March 30, 2008, 7:33am UTC](https://forum.kirupa.com/t/sidescrolling-game-engine-demos/256068 "2008-03-30T07:33:35Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![motionsmith](https://avatars.discourse-cdn.com/v4/letter/m/c2a13f/32.png) [@motionsmith](https://forum.kirupa.com/u/motionsmith)\
**Post date:** [March 30, 2008, 7:33am UTC](https://forum.kirupa.com/t/sidescrolling-game-engine-demos/256068/1 "2008-03-30T07:33:35Z")

</div>

Citrus Engine Demo 4 [HERE.](http://blueflamedev.com/blog/?p=33)

I’ve talked about the Citrus Engine a bit, but I thought I might put up a thread that I could update whenever I released new Demos.

Citrus Engine is a platform game engine that allows for rapid development of 2d Mario-style games. It is built using Actionscript 3.0, and uses physics rather than tiles. It is currently closed source, but I’m always open to graphics and programming help.

Features in demo three:

- Parallax Scrolling (five planes)
- Jumping Enemy
- Spawn Management
- Spring Platforms

Here are the previous demos:  
[Demo 3](http://blueflamedev.com/blog/?p=24)  
[Demo 2](http://blueflamedev.com/projects/citrusengine/demo_2.php)  
[Demo 1](http://blueflamedev.com/projects/citrusengine/demo_1.php)

---

<div class="post-metadata">

**Author:** ![motionsmith](https://avatars.discourse-cdn.com/v4/letter/m/c2a13f/32.png) [@motionsmith](https://forum.kirupa.com/u/motionsmith)\
**Post date:** [May 20, 2008, 6:12am UTC](https://forum.kirupa.com/t/sidescrolling-game-engine-demos/256068/2 "2008-05-20T06:12:27Z")

</div>

I just posted Citrus Engine Demo 4. You can play it and read about it here:

[http://blueflamedev.com/blog/?p=33](http://blueflamedev.com/blog/?p=33)

---

<div class="post-metadata">

**Author:** ![acebuddy29](https://avatars.discourse-cdn.com/v4/letter/a/6de8d8/32.png) [@acebuddy29](https://forum.kirupa.com/u/acebuddy29)\
**Post date:** [May 20, 2008, 10:27am UTC](https://forum.kirupa.com/t/sidescrolling-game-engine-demos/256068/3 "2008-05-20T10:27:36Z")

</div>

hey looks pretty neat. the graphics are also nice .btw what kind of collision detection system are you using?

---

<div class="post-metadata">

**Author:** ![motionsmith](https://avatars.discourse-cdn.com/v4/letter/m/c2a13f/32.png) [@motionsmith](https://forum.kirupa.com/u/motionsmith)\
**Post date:** [May 20, 2008, 3:22pm UTC](https://forum.kirupa.com/t/sidescrolling-game-engine-demos/256068/4 "2008-05-20T15:22:20Z")

</div>

Thank you 🙂 I’m using APE (Actionscript Physics Engine) for the physics and collisions. It works pretty well, but sometimes I wish I had just built the physics into engine rather than using an external engine.

---

<div class="post-metadata">

**Author:** ![substance](https://avatars.discourse-cdn.com/v4/letter/s/c6cbf5/32.png) [@substance](https://forum.kirupa.com/u/substance)\
**Post date:** [May 20, 2008, 3:45pm UTC](https://forum.kirupa.com/t/sidescrolling-game-engine-demos/256068/5 "2008-05-20T15:45:51Z")

</div>

Yeh unfortunately APE isnt the fastest physics engine around, I usually see frame loss with about 25+ objects.

---

<div class="post-metadata">

**Author:** ![rumblesushi](https://avatars.discourse-cdn.com/v4/letter/r/b38774/32.png) [@rumblesushi](https://forum.kirupa.com/u/rumblesushi)\
**Post date:** [May 20, 2008, 4:04pm UTC](https://forum.kirupa.com/t/sidescrolling-game-engine-demos/256068/6 "2008-05-20T16:04:10Z")

</div>

Nice work motion.

It’s unfortunate you say that, I was planning on using APE. Is there a better physics engine around, or are you best coding one yourself?

I’m all about framerate, I like things to be as fast and smooth as possible.

---

<div class="post-metadata">

**Author:** ![motionsmith](https://avatars.discourse-cdn.com/v4/letter/m/c2a13f/32.png) [@motionsmith](https://forum.kirupa.com/u/motionsmith)\
**Post date:** [May 20, 2008, 6:02pm UTC](https://forum.kirupa.com/t/sidescrolling-game-engine-demos/256068/7 "2008-05-20T18:02:27Z")

</div>

[quote=rumblesushi;2328693]Is there a better physics engine around, or are you best coding one yourself?

I’m all about framerate, I like things to be as fast and smooth as possible.[/quote]

It depends on your need and scope, but if you have the skill and time, I’d recommend building one that perfectly suits your needs. If you want to get some physics up and running quickly, I’d recommend Box2D. It’s more complicated to setup than APE, but it’s more effecient.

Just a warning though, depending on what you’re doing, Box2D may not suit all your needs. The AS version doesn’t have all the methods that APE has (last time I checked), including things like grouping, non-solids, and event dispatching. None of those things are too hard to implement, but expect to have to do some extending at some point.

---

<div class="post-metadata">

**Author:** ![motionsmith](https://avatars.discourse-cdn.com/v4/letter/m/c2a13f/32.png) [@motionsmith](https://forum.kirupa.com/u/motionsmith)\
**Post date:** [May 20, 2008, 6:04pm UTC](https://forum.kirupa.com/t/sidescrolling-game-engine-demos/256068/8 "2008-05-20T18:04:50Z")

</div>

> [@substance;2328678](#):
>
> Yeh unfortunately APE isnt the fastest physics engine around, I usually see frame loss with about 25+ objects.

That’s pretty much exactly where I start to get my significant frame drops. This of course, limits the number of moving enemies that I can have in a spawn zone at once. I try to keep objects sleeping as often as possible so they don’t have to check for collisions against each other.

---

<div class="post-metadata">

**Author:** ![Gathan](https://avatars.discourse-cdn.com/v4/letter/g/df705f/32.png) [@Gathan](https://forum.kirupa.com/u/Gathan)\
**Post date:** [May 20, 2008, 6:30pm UTC](https://forum.kirupa.com/t/sidescrolling-game-engine-demos/256068/9 "2008-05-20T18:30:09Z")

</div>

[quote=rumblesushi;2328693]Nice work motion.

It’s unfortunate you say that, I was planning on using APE. Is there a better physics engine around, or are you best coding one yourself?

I’m all about framerate, I like things to be as fast and smooth as possible.[/quote]  
Well with any physics engine there isn’t gonna be a one size fits all, in many cases none of them are gonna do exactly what you want off the bat.  
Heres a list of a couple that I know of right off the top of my head  
[http://box2dflash.sourceforge.net](http://box2dflash.sourceforge.net)  
[http://lab.polygonal.de/category/physics](http://lab.polygonal.de/category/physics)  
[http://home.planet.nl/~borst595/glaze.html](http://home.planet.nl/%7Eborst595/glaze.html)  
[http://blog.generalrelativity.org/?p=17](http://blog.generalrelativity.org/?p=17)

---

<div class="post-metadata">

**Author:** ![doridori](https://avatars.discourse-cdn.com/v4/letter/d/3da27b/32.png) [@doridori](https://forum.kirupa.com/u/doridori)\
**Post date:** [May 20, 2008, 7:13pm UTC](https://forum.kirupa.com/t/sidescrolling-game-engine-demos/256068/10 "2008-05-20T19:13:56Z")

</div>

Site down =/

---

<div class="post-metadata">

**Author:** ![substance](https://avatars.discourse-cdn.com/v4/letter/s/c6cbf5/32.png) [@substance](https://forum.kirupa.com/u/substance)\
**Post date:** [May 21, 2008, 3:54am UTC](https://forum.kirupa.com/t/sidescrolling-game-engine-demos/256068/11 "2008-05-21T03:54:52Z")

</div>

Here’s a pretty good read

[http://www.emanueleferonato.com/2008/04/24/flash-physics-engines-galore/](http://www.emanueleferonato.com/2008/04/24/flash-physics-engines-galore/)
