IsoSlice Basic Dungeon Assets contains 70+ sprite sheet assets (.png) ready to use specifically with the "sprite stacking" technique.
These assets have been formatted for easy import into GameMaker , but any environment you work in will also be compatible.
Show full description...
Drag the assets into the IDE and GameMaker will auto-cut the sprite sheets.
A simple sprite stacking effect can be achieved using the technique shown in code below.
CODE:
///@func draw_stack(_sprite, _x, _y, _z, _rot)
function draw_stack(_sprite, _x, _y, _z, _rot) {
var _frame_num = sprite_get_number(_sprite);
var _ang_dcos = dcos(YOUR_CAMERA_ANGLE);
var _ang_dsin = -dsin(YOUR_CAMERA_ANGLE);
for (var _frame = 0; _frame < _frame_num; _frame += 1) {
var _dist = _frame + _z;
var _lx = _dist * _ang_dcos;
var _ly = _dist * _ang_dsin;
draw_sprite_ext(_sprite, _frame, _x - _lx, _y - _ly, 1, 1, _rot, c_white, 1);
}
}
Usage:
The assets contained within this pack are free to use in either non-commercial or commercial projects. No credit is required but very welcomed.
Any questions regarding the assets, let me know below!