Sunday, November 27, 2011 - 18:26

So how to build a billiard game (8 balls) using nEngine. This is another simple tutorial to show you how simple it is to build a billiard game in actionscript using nEngine. 

The tutorial show how to setup the level desgin for the billard game using simple game objects to set the borders. The balls are also simple game objects with nBall body. Inside the ball movieclip we define unique colors and set the frame label according to the ball number. 

Saturday, November 26, 2011 - 16:33

In some cases it is usefull to know the last frame number and the first frame number of a specific label. For example if you want to call gotoAndPlay("jump") but you want it to play only one time. 

getLastFrame() will return the number of the last frame of a specific label.

Tuesday, November 22, 2011 - 00:50

The video shows how to play with nEngine camera. You can add multiple camera dummies to your level and define the breaking force between them. 

nEngine also provide several other scrolling methods. You can explore each one by setting the nCameraConfig.SCROLL_BEHAVE. The methods are:

nCameraScrollBehave.SIDE_SCROLL - Scroll the camera to the corners of the level
 nCameraScrollBehave.TO_DIRECTION_SCROLL - Scroll to the direction of the mouse
nCameraScrollBehave.BACK_TO_ORIGINAL_SCROLL - Will scroll back to the originl point

 

Monday, November 21, 2011 - 23:29

Adding the Enemy game object which is the same as those little pigs in angry birds. The enemy is made from a glass material so it isrelatively easier to break. 

We use the auto damage system and allow all game objects to create damage to each other. We also limit the damage to start only after a sleep state applied. 

Monday, November 21, 2011 - 23:01

Cover how to make things a little bit prettier. First thing we start is to add a nicer "hero" and a truck as our slingshot.

We add mouthen background and set them to inherit the nBackground class. The camera will render the background in a different way than the other game objects. It will make you feel like there is a depth between the camera and the background. You can add multiple layers of backgrounds and the distance between them will be calculate by the engine. 

Monday, November 21, 2011 - 00:24

Flash already provide Motion guide using the Flash IDE.  Sometimes , for whatever reasons you have, you want to find the path across a line using actionscript.  In this tutorial i will try to build some sort of a graphic path solver to analyse the path across a vector shape.

First step is to define our path solver class:

Tuesday, September 20, 2011 - 23:38

Small tutorial about how to create a game like angry birds using nEngine ActiontScript 3 API client in 10 minutes. 

The 1st step is to create a new level class. We are using the nLevel class to create our first level. Inside the level class we can add any game objects or any other viewable clip. The game objects in the following example are: