Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- stage {
- backdrop White("gallery:General/White")
- when stage.keyPressed("space"){
- Toll.reDraw();
- }
- actor Kocka {
- costume Kocka_1("gallery:Objects/Cube 1")
- costume Kocka_2("gallery:Objects/Cube 2")
- costume Kocka_3("gallery:Objects/Cube 3")
- costume Kocka_4("gallery:Objects/Cube 4")
- costume Kocka_5("gallery:Objects/Cube 5")
- costume Kocka_6("gallery:Objects/Cube 6")
- when stage.started {
- this.setPosition(-280, 140);
- this.setCostume(Kocka_1);
- }
- when clicked {
- this.nextCostume();
- }
- }
- actor Szám {
- costume Nulla("gallery:Text/Zero")
- costume Egy("gallery:Text/One")
- costume Kettő("gallery:Text/Two")
- costume Három("gallery:Text/Three")
- costume Négy("gallery:Text/Four")
- costume Öt("gallery:Text/Five")
- costume Hat("gallery:Text/Six")
- costume Hét("gallery:Text/Seven")
- costume Nyolc("gallery:Text/Eight")
- costume Kilenc("gallery:Text/Nine")
- when clicked {
- this.nextCostume();
- }
- when stage.started {
- this.setPosition(280, 140);
- this.setCostume(Egy);
- }
- }
- actor Toll {
- costume Toll_1("gallery:Objects/Pen 1")
- costume Toll_2("gallery:Objects/Pen 2")
- costume Toll_3("gallery:Objects/Pen 3")
- when stage.started {
- this.hide();
- }
- //TODO
- function reDraw() {
- stage.clearPenTrails();
- let form = Kocka.costumeId;
- let N = Szám.costumeId;
- this.pen.size = 3;
- if(form == 1) {
- this.heading = 90;
- this.setPosition(-300, -150);
- this.pen.down();
- }
- if(form == 2) {
- this.heading = 90;
- this.setPosition(-300, -150);
- this.pen.down();
- }
- if(form == 3) {
- this.heading = 90;
- this.setPosition(-100, 70);
- this.pen.down();
- }
- if(form == 4) {
- this.heading = 0;
- this.setPosition(0, -150);
- this.pen.down();
- }
- if(form == 5) {
- this.heading = 0;
- this.setPosition(0, -150);
- this.pen.down();
- }
- this.pen.up();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement