Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- stage {
- default backdrop Grey_Light("gallery:General/Grey Light")
- let list_1 = [ ];
- let list_2 = [ ];
- let index = 0;
- actor Prince {
- costume Idle("gallery:Figures/Prince Idle")
- costume Walk_1("gallery:Figures/Prince Walk 1")
- costume Walk_2("gallery:Figures/Prince Walk 2")
- when cloned {
- //TODO
- }
- when stage.signalReceived("start") {
- //TODO
- }
- when clicked {
- //TODO
- }
- }
- actor Princess {
- costume Idle("gallery:Figures/Princess Idle")
- costume Walk_1("gallery:Figures/Princess Walk 1")
- costume Walk_2("gallery:Figures/Princess Walk 2")
- when stage.started {
- this.hide();
- list_1=[];
- list_2=[];
- this.setPosition(-180,100);
- this.tint=250;
- this.size=30;
- this.tintHue=0;
- createClone(this);
- this.x+=360;
- this.tintHue+=40;
- createClone(this);
- this.y-=200;
- this.tintHue+=40;
- createClone(this);
- this.x-=360;
- this.tintHue+=40;
- createClone(this);
- this.setPosition(0, 0);
- this.tintHue = 1;
- list_1.push(this);
- for (let i = 1; i <= 5; i++) {
- list_2.push(0);
- }
- }
- when cloned {
- list_1.push(this);
- }
- when stage.signalReceived("start") {
- if(this.cloneId > 0) {
- this.show();
- }
- }
- }
- actor Winner {
- costume Blue("gallery:Text/Winner Blue")
- costume Green("gallery:Text/Winner Green")
- when stage.setup {
- this.hide();
- }
- when stage.signalReceived("win") {
- this.show();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement