Lively Kernel canvas
Cool:-)17
nullnullnullnullnullnullnullnullnullnullnullnull100464.7757212740196
Changes:-replacedTextwithworkspace-copiedtheClasscreationintoa"Doit"inthelocalcodebrowser,sothattheinstancecanbeproperlyrecreatedIhopeyoulikedmychanges.Havefun.:-)(Jens)5
ImageMorph.subclass('Mobilan',{initialize:function($super){$super(newRectangle(45,45,49,49),'http://i988.photobucket.com/albums/af4/hadyan_mf/racing20car.png');this.moveOriginBy(this.getExtent().scaleBy(0.5));this.setFill(null);this.scaleBy(0.3);},moveRight:function(){//don'tdriveoutofthescreenif(this.owner.shape.bounds().containsPoint(this.bounds().topRight()))this.moveBy(pt(5,0))},startSteppingScripts:function(){this.startStepping(50,"moveRight");//callmoveRighteverysecond}});//removetheoldinstanceif($morph('mobil1'))$morph('mobil1').remove();mobil=newMobilan();mobil.name="mobil1"ban_belakang=Morph.makeCircle(pt(-30,60),60,10,Color.black,Color.yellow);ban_depan=Morph.makeCircle(pt(220,65),50,10,Color.black,Color.yellow);garis_belakang=Morph.makeLine([pt(20,20),pt(20,70)],10,Color.black);garis_depan=Morph.makeLine([pt(20,20),pt(20,70)],10,Color.black);mobil.addMorph(ban_belakang);mobil.addMorph(ban_depan);ban_belakang.addMorph(garis_belakang);ban_depan.addMorph(garis_depan);mobil.openInWorld();mobil.startSteppingScripts();ban_belakang.startStepping(50,"rotateBy",0.5);ban_depan.startStepping(50,"rotateBy",0.5);truetruefalsefalse41truetrue
false00.11truefalsetruetrue
nullfalsetruenull
Workspacefalsenulltruefalse
false
false
falsenullfalsefalsenullnullnullnullfalse
Wikicontroltruetrue
nullnullnullnullnullnull0.55073.632931479046870.8674396374018131
nullnullnullnullnullnull0.55051.9783998143671940.8674396374018131
nullnullnullnullnullnull5010.822384424697733
null29