Most informative video! However, the size of the font is really small, making it hard to keep up with the tutorial.
Thank you very much for creating this all the same!
Okay, I figured out that Assets.as should look like this:
package{
public class Assets{
[Embed(source="tiles.png")]
public static const SPRITE_TILESET:Class;
}
}
Is that what he meant by a Static Class? Would be nice if a link to the source files were provided.
Also, for those tying in this example, as of 2011-07-04 the following changes should be made to the file Level.as:
Every time this appears
_tiles.setRegion( ~stuff~ );
it should read
_tiles.setRect( ~stuff~ );
Every time this appears
_grid.setCell( ~stuff~ );
it should read
_tiles.setTile( ~stuff~ );
If you use the old functions, it will not compile.
[...] Flashpunk has built in functionality to take advantage of grid-based tilesets, and there is a nice tutorial on the Flashpunk website on how to implement this functionality. However, there was also a nice [...]
Most informative video! However, the size of the font is really small, making it hard to keep up with the tutorial.
Thank you very much for creating this all the same!
FlashDev is returning the following line as an error…
_grid = new Grid(800, 600, 32, 32, 0, 0);
Access of undefined property. Not sure why it thinks its a prop in the first place.
NVM on that last comment. I’m just dumb
The video does not show Assets.as
What does that look like?
Okay, I figured out that Assets.as should look like this:
package{
public class Assets{
[Embed(source="tiles.png")]
public static const SPRITE_TILESET:Class;
}
}
Is that what he meant by a Static Class? Would be nice if a link to the source files were provided.
Also, for those tying in this example, as of 2011-07-04 the following changes should be made to the file Level.as:
Every time this appears
_tiles.setRegion( ~stuff~ );
it should read
_tiles.setRect( ~stuff~ );
Every time this appears
_grid.setCell( ~stuff~ );
it should read
_tiles.setTile( ~stuff~ );
If you use the old functions, it will not compile.
Episode 2? lol
[...] Flashpunk has built in functionality to take advantage of grid-based tilesets, and there is a nice tutorial on the Flashpunk website on how to implement this functionality. However, there was also a nice [...]
Barely visible. Please repost in a proper quality.