Now You Can Make Moving Platforms
I’ve just added a moving platform object into the platformer toolkit as a part of the Citrus Engine! Download the new version of the Citrus Engine to take advantage of this awesome, easy-to-use new object. Here’s how you’ll use it:
var movingPlatform:MovingPlatform = new MovingPlatform("mp1", {width: 100, height: 20});
add(movingPlatform);
movingPlatform.x = 50;
movingPlatform.y = 400;
movingPlatform.waitForPassenger = false; //won't move until you get on it
movingPlatform.endX = 500;
movingPlatform.endY = 400;
movingPlatform.speed = 2;
movingPlatform.oneWay = true; //You can jump up through it like a cloud
movingPlatform.enabled = true;
How to Make Levels in the Flash IDE
In Citrus Engine 2, we will be supporting multiple level editors. One of the editors we are supporting is the Flash IDE. It is a great tool to use as a level editor because it is cross platform, and most Citrus Engine users have it. Here’s what you need to know to get started:
First of all, you’ll need a copy of Flash CS4 or higher. You need to be able to generate a Flash 10 SWF. Once you’ve got that, all you need to do is watch the video below; however, if you haven’t already, you should watch the Hello World video first.
Citrus Engine 2 - Using Flash as a Level Editor from Eric Smith on Vimeo.
Page 1 of 1

