kopia lustrzana https://github.com/backface/turtlestitch
Nested Sprite Motion
rodzic
325ad2297b
commit
b4db57dc94
|
@ -1857,3 +1857,4 @@ ______
|
|||
* Objects, GUI: Sprite Nesting preliminaries
|
||||
* Objects: Fixed stage costume scaling & misplacing bug. Thanks, Josh, for the report!
|
||||
* Objects, GUI: Sprite Nesting GUI
|
||||
* Objects: Nested Sprite Motion
|
||||
|
|
|
@ -2624,6 +2624,14 @@ SpriteMorph.prototype.drawLine = function (start, dest) {
|
|||
|
||||
// SpriteMorph motion
|
||||
|
||||
SpriteMorph.prototype.moveBy = function (delta) {
|
||||
// override the inherited default to make sure my parts follow
|
||||
SpriteMorph.uber.moveBy.call(this, delta);
|
||||
this.parts.forEach(function (part) {
|
||||
part.moveBy(delta);
|
||||
});
|
||||
};
|
||||
|
||||
SpriteMorph.prototype.forward = function (steps) {
|
||||
var start = this.rotationCenter(),
|
||||
dest,
|
||||
|
|
Ładowanie…
Reference in New Issue