Saw Behaviors
VERTICAL and HORIZONTAL Saws require NO BEHAVIOURS!
VERTICAL and HORIZONTAL Saws require NO BEHAVIOURS!
VERTICAL and HORIZONTAL Saws require NO INSTANCE VARIABLES
VERTICAL and HORIZONTAL Saws require NO INSTANCE VARIABLES
The Platform Saw has the MoveTo Behavior
The Platform Saw has the MoveTo Behavior
Platform Saw
Platform Saw
Instance Variables
Instance Variables
The naming scheme for the Position variables refers to the corners of the platform.
The naming scheme for the Position variables refers to the corners of the platform.
So PosTLx refers to the X Position of the Top Left Corner
So PosTLx refers to the X Position of the Top Left Corner
PosTLy refers to the Y Position of the Top Left Corner
PosTLy refers to the Y Position of the Top Left Corner
And so on...
And so on...
Take note of the TilesWalkX and TilesWalkY variables.
Take note of the TilesWalkX and TilesWalkY variables.
These represent HOW MANY tiles the saw has to walk ACROSS and DOWN.
These represent HOW MANY tiles the saw has to walk ACROSS and DOWN.
This will CHANGE depending on the platforms you put the saw on.
This will CHANGE depending on the platforms you put the saw on.
For my level the first saw has to walk ACROSS 10 tiles and DOWN 6 tiles.
For my level the first saw has to walk ACROSS 10 tiles and DOWN 6 tiles.
The second saw has to walk ACROSS 6 tiles and DOWN 3 tiles.
The second saw has to walk ACROSS 6 tiles and DOWN 3 tiles.
Other ways to do this are with PathFinding Behavior or a TimeLine animation.
Other ways to do this are with PathFinding Behavior or a TimeLine animation.
Instance Variable values for Platform Saw 1
Instance Variable values for Platform Saw 1
Instance Variable values for Platform Saw 2
Instance Variable values for Platform Saw 2