A Flash Developer Resource Site

Results 1 to 20 of 20

Thread: KM Lab

  1. #1
    Banned XareoX's Avatar
    Join Date
    Aug 2006
    Posts
    462

    KM Lab

    Please put your KM Physics or something your working on in here so other people can comment on them. Eg Done something cool with gravity,friction or something i will try and make a springy thing.

    ill Quickly Make Something now ...

  2. #2
    Banned XareoX's Avatar
    Join Date
    Aug 2006
    Posts
    462
    SPRING MAN !!!!!!

    Here it is:

    http://img138.imageshack.us/my.php?i...ringmannh0.swf

    Hope you like it. Im going to send it to Kool Exchange( www.koolexchange.com ) so you can edit it or something =).

  3. #3
    up to my .as in code Chris_Seahorn's Avatar
    Join Date
    Dec 2004
    Posts
    4,389
    Cool. I know someone who thinks like you. You should visit

    http://lab.bit-101.com/

    EDIT: Also Yugop. Yugop is off the hook and you would enjoy some of his stuff as food for thought:

    http://www.yugop.com/

  4. #4
    Banned XareoX's Avatar
    Join Date
    Aug 2006
    Posts
    462
    They have some cool stuff physics I got some of my code from there elastic tutoral. Thats were i learnt the elastic thing with the strechable legs.

  5. #5
    Banned XareoX's Avatar
    Join Date
    Aug 2006
    Posts
    462
    you should see the new platform game im making it has mountians and all it rotates when you go up a mountian and it has scrolling 2.

  6. #6
    Banned XareoX's Avatar
    Join Date
    Aug 2006
    Posts
    462
    yugop i havnt been there before. Nice site

  7. #7

  8. #8
    Banned XareoX's Avatar
    Join Date
    Aug 2006
    Posts
    462
    Quote Originally Posted by Chris_Seahorn
    He awesome. Check out

    04: ClayGrid
    yea it is quite goodbut boring =P

  9. #9
    up to my .as in code Chris_Seahorn's Avatar
    Join Date
    Dec 2004
    Posts
    4,389
    Quote Originally Posted by XareoX
    yea it is quite goodbut boring =P

    You know what they say..."can't please them all". Well....I'll leave you to your gaming. Good luck

  10. #10
    Banned XareoX's Avatar
    Join Date
    Aug 2006
    Posts
    462
    thanks

  11. #11
    Senior Member
    Join Date
    Dec 2002
    Location
    Netherlands
    Posts
    1,632
    One of my favorite labs
    http://lab.andre-michelle.com/
    but you already may know that one.

  12. #12
    Banned XareoX's Avatar
    Join Date
    Aug 2006
    Posts
    462
    yea i have been there i like her 3d rendering stuff

  13. #13
    Senior Member
    Join Date
    Nov 2006
    Posts
    196
    Heres something I have made using the API Drawing feature: Kool exchange Api Game thing v2.

    http://img177.imageshack.us/my.php?image=apitesthy8.swf

    and heres the code:

    s=10;
    blur=new flash.filters.BlurFilter(10,10,1);
    _root.createEmptyMovieClip("char",1);
    char.lineStyle(0,0x0,0);
    char.beginFill(0x55575,100);
    char.moveTo(200,200);
    char.lineTo(200,250);
    char.lineTo(250,250);
    char.lineTo(250,200);
    char.lineTo(200,200);
    char.endFill();
    blur=new flash.filters.BlurFilter(10,10,1)
    _root.char.filters=[blur];


    _root.createEmptyMovieClip("wall",2);
    wall.lineStyle(0,0x000,0);
    wall.beginFill(0x0,100);
    wall.moveTo(-20,0);
    wall.lineTo(-20,550);
    wall.lineTo(100,550);
    wall.lineTo(100,0);
    wall.lineTo(-20,0);
    wall.endFill();
    _root.wall.filters=[blur];
    _root.createEmptyMovieClip("wall2",3);
    wall2.lineStyle(0,0x0,0);
    wall2.beginFill(0x0,100);
    wall2.moveTo(0,-20);
    wall2.lineTo(0,550);
    wall2.lineTo(120,550);
    wall2.lineTo(120,-20);
    wall2.lineTo(0,-20);
    wall2.endFill();
    _root.wall2.filters=[blur];
    _root.createEmptyMovieClip("wall3",4);
    wall3.lineStyle(0,0x0,0);
    wall3.beginFill(0x0,100);
    wall3.moveTo(0,350);
    wall3.lineTo(0,420);
    wall3.lineTo(550,420);
    wall3.lineTo(550,350);
    wall3.lineTo(0,350);
    wall3.endFill();
    _root.wall3.filters=[blur];

    _root.createEmptyMovieClip("top",5);
    top.lineStyle(0,0x0,100);
    top.beginFill(0x0,100);
    top.moveTo(0,-20);
    top.lineTo(0,50);
    top.lineTo(550,50);
    top.lineTo(500,-20);
    top.lineTo(0,-20);
    top.endFill();
    _root.top.filters=[blur];

    _root.createEmptyMovieClip("enemy",6);
    enemy.lineStyle(0,0x0,0);
    enemy.beginFill(0x99999,100);
    enemy.moveTo(200,200);
    enemy.lineTo(200,250);
    enemy.lineTo(250,250);
    enemy.lineTo(250,200);
    enemy.lineTo(200,200);
    enemy.endFill();
    _root.enemy._y=80;
    _root.char._y=-80;
    _root.enemy.filters=[blur];

    health=100;
    this.createTextField("health_txt", 7, 250, 100, 200, 400);
    health_txt.multiline = false;
    health_txt.embedFonts = false;
    health_txt.selectable = false;
    health_txt.variable = "health";
    health_txt.setTextFormat(format);

    onEnterFrame=function(){
    _root.wall2._x=450;

    if(Key.isDown(Key.RIGHT)){
    _root.char._x+=s;
    }
    if(Key.isDown(Key.LEFT)){
    _root.char._x-=s;
    }
    if(Key.isDown(Key.DOWN)){
    _root.char._y+=s;
    }
    if(Key.isDown(Key.UP)){
    _root.char._y-=s;
    }
    if(_root.char.hitTest(_root.wall)){
    _root.char._x+=s;
    }
    if(_root.char.hitTest(_root.wall2)){
    _root.char._x-=s;
    }
    if(_root.char.hitTest(_root.wall3)){
    _root.char._y-=s;
    }
    if(_root.char.hitTest(_root.top)){
    _root.char._y+=s;
    }
    if(_root.char._x<_root.enemy._x){
    _root.enemy._x-=5;
    }
    if(_root.char._x>_root.enemy._x){
    _root.enemy._x+=5;
    }
    if(_root.char._y<_root.enemy._y){
    _root.enemy._y-=5;
    }
    if(_root.char._y>_root.enemy._y){
    _root.enemy._y+=5;
    }
    if(_root.char.hitTest(_root.enemy)){
    _root.char._alpha-=.5;
    _root.health-=1;
    }
    if(_root.health<=0){
    _root.char._alpha=0;
    _root.enemy._alpha=0;
    _root.health="Game Over";
    }
    }

    free for you to experinment with and use have fun with it.

    And if you know anything that is cool with the API function please post =)

  14. #14
    Senior Member
    Join Date
    Nov 2006
    Posts
    196
    Here is a API thing i made with km

    http://img177.imageshack.us/my.php?i...oeffectxe7.swf

    it looks good doesnt it?? i used only 12 lines of code for it.

    Tell me what you think of it before i send it to Kool Exchange so i could edit anything if i find any bugs is the code =).

  15. #15
    KoolMoves Moderator blanius's Avatar
    Join Date
    Jul 2001
    Location
    Atlanta GA
    Posts
    5,244

    woah

    Quote Originally Posted by this.Alex
    Here is a API thing i made with km

    http://img177.imageshack.us/my.php?i...oeffectxe7.swf

    it looks good doesnt it?? i used only 12 lines of code for it.

    Tell me what you think of it before i send it to Kool Exchange so i could edit anything if i find any bugs is the code =).
    Yeah 99% CPU usage.... Not very usefull.

  16. #16
    Senior Member
    Join Date
    Nov 2006
    Posts
    196
    yea i know ill try and lower that later lol to much duplicated movie clips =)

  17. #17
    Senior Member
    Join Date
    Nov 2006
    Posts
    196
    http://img293.imageshack.us/my.php?i...oeffectms9.swf

    lowerd it down to 15% on my computer.

  18. #18
    KoolMoves Moderator blanius's Avatar
    Join Date
    Jul 2001
    Location
    Atlanta GA
    Posts
    5,244
    jumps firefox from 10% to 45-55% a little less in IE

  19. #19
    Relaxing tmoore935's Avatar
    Join Date
    Oct 2001
    Location
    colorado, usa
    Posts
    1,713
    Yes, its like 35 percent on my computer which is 2.54 ghz and 512 ram
    Any programming language is at its best before it is implemented and used.

  20. #20
    Senior Member
    Join Date
    Nov 2006
    Posts
    196
    damit by the time iv made it down to below 10 it will look realy bad =P duplicating the shape using API is the only way 1 know maybe gradientfill will make it look better with less cpu usage.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center