APE Vectors, Built-In Collision Detection, User Control
No commentsThis movie demonstrates the ability to move one object that collides with another object. You have control over the white ball by simply using your arrow keys. I modified the classes slightly and added some more configuration to the circle classes.
package {
import flash.display.Sprite;
import flash.events.Event;
import org.cove.ape.APEngine;
import org.cove.ape.Vector;
import org.cove.ape.CircleParticle;
import org.cove.ape.Group;
import flash.events.KeyboardEvent;
import flash.ui.Keyboard;
import flash.text.TextField;
public [...]
APE Vectors and Collidable Walls
No commentsSo I just added some walls to my little movie here and took out the KEY_UP handler to allow the circle to continuously move around the stage. To activate, simply hit an arrow key.
package {
import flash.display.Sprite;
import flash.events.Event;
import org.cove.ape.APEngine;
import org.cove.ape.Vector;
import org.cove.ape.CircleParticle;
import org.cove.ape.Group;
import flash.events.KeyboardEvent;
import flash.ui.Keyboard;
import flash.text.TextField;
public class Main extends Sprite
{
private var cp:Circle = new [...]
Actionscript Physics Engine Vectors
No commentsSo I was deconstructing a game the other day that was using the APE Actionscript Engine and wanted to note how movement of an object can be created. By creating a new Vector an object can be moved accordingly. To interact with the movie, simply press the arrow keys on your keyboard.
[kml_flashembed movie="/projects/flash/APEVectors/APEVectors.swf" width="700" height="700" [...]
APE Project - Step 8 - Adding a Fixed Bridge
No commentsFrom a few past experiments [1 | 2 ] I wanted to add a bridge to my movie here. For now:
Hold down the Shift key to and drag your mouse across the stage to draw a rectangle
Hold down the Command (or Ctrl key) key and click an area on the stage to build a bridge
You [...]
APE Project - Step 7 - Rotating Rectangle Particles - Fix
No commentsWell, I always knew that the best debugging practice is to walk away and revisit the issue at a later time - and with the extra spare time it is best to get some rest, drink some beer, or just watch my girlfriend decorate our house with her designer handmade crafts. Anyways, I have found [...]