søndag 14. september 2008

So Much Rewriting of Code!

I decided to change something that hasn't changed since Stickman 1.0. That's three years ago! What I wanted to do: Let the user choose tool action by right-clicking in the work area.



The problem was that, for example in matrix tool, the right+drag was used to rotate. So I had to rewrite all tools to use the new standard. From now on, the user will only use the left mouse button in a tool. Notice the icons on the left side of work area are removed and put into the right-click menu.

Another new feature is snapping. Snapping is turned on by default, you can turn it off by right-click and uncheck 'Snapping On'.

fredag 12. september 2008

New Stuff Coming Up

I've been working on the next version of Stickman for a while. There will be some big changes and many small ones.

One thing I discovered was that the toolbar with the shortcuts (F1, F2, ...) is a bad habit to use. Most users never find out how the software is structured because of this. I want people to develop from beginners to advanced users without getting boring. So I removed the toolbar in the new version, leaving the user with a drop down list and shortcuts.

The general idea is to let the user with two choices:
1. Select the appropriate tool from a list box
2. Use shortcuts

No colored toolbar that make bad habits.
Here's a screenshot of new interface of Stickman:
(the version number is not changed yet, the new version will be 5.3)



The interface does not look very fancy, but it's cleaner and I love it. It looks more like the old interface of Stickman 4, but I think new users will learn quicker.

søndag 20. juli 2008

Containers In Stickman & Elemento

This tutorial shows how to create and use containers.
Containers are a way for figures to pick up and carry items.
A figure can also be displayed inside a container, for example in a space ship.

lørdag 14. juni 2008

Create a Figure in 1-2-3

This video shows how to create a figure with Elemento in 3 steps.

onsdag 4. juni 2008

The Magic of the Matrix

Matrix nodes are used to attach graphics to control points.
In this article I'll try to explain how they work.

1. A matrix node influences the coordinate system of sub nodes.

For example:


When you move matrix1, all sub nodes also move.
Since the matrix itself is invisible, it works perfect as a group tool.

2. Combining multiple matrices result into one, new coordinate system.

For example:



equals

A * B * C * D = X

Where matrix X is used to draw the sub graphics.

What happens behind the scene when the graphics is attached to control points?

All matrix nodes got an 'Attach' action. This is used to 'glue' the matrix to control points.

First, put the graphics you want to attach into a matrix node.



Then, with bone tool, create two control points.



Select the 'body' matrix and use the 'Attach' action:





The 'Attach' action creates a new matrix node named 'bodyMatrix'.



If we select 'bodyMatrix' we see the center is at 'point1' and rotating in direction of 'point2'.



'bodyMatrix' has the following expressions:

bodyMatrix.Offset = point1.Pos

bodyMatrix.Rotate = Rotate(point2.Pos;point1.Pos;.Rotate)

These epressions are executed at run time.

Notice the properties of 'body' also have changed.
This is to compensate for the Offset and Rotate property of 'bodyMatrix'.

Before:



After:



To understand this we need to think of matrix nodes as kind of math with just one law:

A * 1/A = 1

1/A equals the inverted A matrix.
1 equals a matrix node with default values.

To calculate the new values of 'body', the following formula is used:

oldbody = oldbody

bodyMatrix * 1/bodyMatrix * oldbody = oldbody

bodyMatrix * (1/bodyMatrix * oldbody) = bodyMatrix * newbody = oldbody

newbody = 1/bodyMatrix * oldbody

Matrix math is not only used in Stickman & Elemento but in most 2D and 3D games. If you can't understand them, don't worry. It just works!

fredag 30. mai 2008

Recursive Node - New in Elemento 23

A new node called 'recursive' can be used to create plants in Elemento.
It draws all sub nodes recursively by replacing one of the sub nodes with itself.
The sub node to replace is defined by the 'ReplaceVariable' property.


The 'Region' property controls the area to grow new branches.


Watch this tutorial to see how to set up the recursive node.



Elemento is part of the 2D animation software Stickman