Shop Forum More Submit  Join Login
About Digital Art / Hobbyist Alex28/Male/Ukraine Recent Activity
Deviant for 9 Years
Needs Core Membership
Statistics 516 Deviations 155 Comments 8,569 Pageviews
×

Activity


roomly
stage.addEventListener(KeyboardEvent.KEY_DOWN, move)
function move (event:KeyboardEvent):void{

    if(ldo.hitTestObject(d1)){r2.visible=true;r9.visible=true;r5.visible=true;r3.visible=true}
    if(ldo.hitTestObject(d2)){r11.visible=true;r1.visible=true}
    if(ldo.hitTestObject(d3)){r1.visible=true;r5.visible=true;r6.visible=true;r9.visible=true}
    if(ldo.hitTestObject(d4)){r5.visible=true;r10.visible=true;r11.visible=true;r12.visible=true}
    if(ldo.hitTestObject(d5)){r1.visible=true;r3.visible=true;r4.visible=true;r7.visible=true}
    if(ldo.hitTestObject(d6)){r3.visible=true;r7.visible=true}
    if(ldo.hitTestObject(d7)){r5.visible=true;r6.visible=true;r12.visible=true}
    if(ldo.hitTestObject(d8)){r10.visible=true;r12.visible=true}
    if(ldo.hitTestObject(d9)){r1.visible=true;r3.visible=true}
    if(ldo.hitTestObject(d10)){r4.visible=true;r8.visible=true}
    if(ldo.hitTestObject(d11)){r2.visible=true;r4.visible=true}
    if(ldo.hitTestObject(d12)){r4.visible=true;r7.visible=true;r8.visible=true;}
    
    if(ldo.hitTestObject(r1)){r1.visible=false}
    if(ldo.hitTestObject(r2)){r2.visible=false}
    if(ldo.hitTestObject(r3)){r3.visible=false}
    if(ldo.hitTestObject(r4)){r4.visible=false}
    if(ldo.hitTestObject(r5)){r5.visible=false}
    if(ldo.hitTestObject(r6)){r6.visible=false}
    if(ldo.hitTestObject(r7)){r7.visible=false}
    if(ldo.hitTestObject(r8)){r8.visible=false}
    if(ldo.hitTestObject(r9)){r9.visible=false}
    if(ldo.hitTestObject(r10)){r10.visible=false}
    if(ldo.hitTestObject(r12)){r12.visible=false}
    
    if((event.keyCode==Keyboard.RIGHT||event.keyCode==102))
    {ldo.x+=1}
    if(event.keyCode==Keyboard.UP||event.keyCode==104)
    {ldo.y-=1}
    if(event.keyCode==Keyboard.LEFT||event.keyCode==100)
    {ldo.x-=1}
    if(event.keyCode==Keyboard.DOWN||event.keyCode==98)
    {ldo.y+=1}
    
    if(r1.visible==true&&r2.visible==true&&r3.visible==true&&r4.visible==true&&
        r5.visible==true&&r6.visible==true&&r7.visible==true&&r8.visible==true&&
        r9.visible==true&&r10.visible==true&&r11.visible==true&&r12.visible==true)
    {ldo.play();
        r1.visible=false;r2.visible=false;r3.visible=false;
        r4.visible=false;r5.visible=false;r6.visible=false;
        r7.visible=false;r8.visible=false;r9.visible=false;
        r10.visible=false;r11.visible=false;r12.visible=false;}
}
Loading...

Comments


Add a Comment:
 
:iconsodachichan:
Sodachichan Featured By Owner Mar 22, 2018  Student Digital Artist
Thanks for watching!
Reply
:icongrungewerxblack:
GrungeWerXblack Featured By Owner Feb 22, 2018

Great work here! ^_^

Reply
:icongrapplejuice4percent:
GrappleJuice4percent Featured By Owner Feb 25, 2018  Hobbyist Digital Artist
Thank you. Please, stay inspired for more!
Reply
:iconihaveaninkling:
ihaveaninkling Featured By Owner Feb 14, 2018  Student General Artist
Thank you for the watch!
Reply
:iconannafromthetrain:
AnnaFromTheTrain Featured By Owner Feb 7, 2018  Student Traditional Artist
Thanks for a watch! ^^
Reply
:iconassink-art:
Assink-art Featured By Owner Jan 1, 2018
Thank you for the watch, I feel honoured! Have a nice day and a great 2018 Love The Sunshine 
Reply
:icongrapplejuice4percent:
GrappleJuice4percent Featured By Owner Jan 3, 2018  Hobbyist Digital Artist
Nice feelings, best wishes, continue to grow!
Reply
:iconassink-art:
Assink-art Featured By Owner Jan 3, 2018
Hug 
Reply
:icondamaimikaz:
DamaiMikaz Featured By Owner Sep 12, 2017  Hobbyist Digital Artist
Woah! Thanks for the watch :dummy:
Reply
:icongrapplejuice4percent:
GrappleJuice4percent Featured By Owner Sep 23, 2017  Hobbyist Digital Artist
Mmm... You are wonderful!
Reply
Add a Comment: