Results 1 to 11 of 11
  1. #1
    rebekah is offline Member
    Join Date
    Dec 2014
    Posts
    4
    Rep Power
    0

    Exclamation I need help animating! Please make the arms move up and down

    background (90, 250, 229);
    fill(255,255,255,255);
    // lower body part
    ellipse (200,318,165,165);

    // middle body part
    ellipse( 200,207,135,135);

    // head part
    ellipse( 200, 100, 115,115);


    //top button
    strokeWeight(13);
    point(200,177);

    //middle
    point(200,208);

    // last dot
    point(200,240);

    //left eye
    strokeWeight(13);
    point( 180,81);

    //right eye
    point(221,81);

    //mouth
    strokeWeight(11);

    //mouth
    noStroke();
    fill(0,0,0);
    arc(201, 108, 76, 74, 4, 180);

    //nose
    fill(255, 102, 0);
    triangle(191, 88, 209, 88, 194, 124);

    //hat
    fill(20, 19, 19);
    rect(155,32,89,23);
    rect(177,-17,49,62);

    // arms


    draw= function() {



    var left1=72;
    var right1= 343;
    stroke(10, 9, 10);
    strokeWeight(1);
    fill (61, 38, 10);


    // left
    line(left1,left1+42,138,186);

    //right
    line(270,193,right1,right1-213);

    left1 = left1 + 33;
    right1 = right1+33;



    };

  2. #2
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    Eastern Florida
    Posts
    20,001
    Rep Power
    33

    Default Re: I need help animating! Please make the arms move up and down

    Please post code that will compile and execute for testing. Be sure to wrap the code in code tags.
    If you don't understand my response, don't ignore it, ask a question.

  3. #3
    JosAH's Avatar
    JosAH is offline Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    14,423
    Blog Entries
    7
    Rep Power
    27

    Default Re: I need help animating! Please make the arms move up and down

    @OP: are you talking Javascript here?

    kind regards,

    Jos
    Build a wall around Donald Trump; I'll pay for it.

  4. #4
    gimbal2 is offline Just a guy
    Join Date
    Jun 2013
    Location
    Netherlands
    Posts
    5,114
    Rep Power
    12

    Default Re: I need help animating! Please make the arms move up and down

    That is indeed clearly Javascript and not Java. But hey when you're only out to make other people do the work for you, you don't mind where you dump your code.
    "Syntactic sugar causes cancer of the semicolon." -- Alan Perlis

  5. #5
    jim829 is offline Senior Member
    Join Date
    Jan 2013
    Location
    Northern Virginia, United States
    Posts
    6,226
    Rep Power
    13

    Default Re: I need help animating! Please make the arms move up and down

    I need help animating! Please make the arms move up and down
    Danger Will Robinson, Danger!!

    Regards,
    Jim
    The JavaTM Tutorials | SSCCE | Java Naming Conventions
    Poor planning on your part does not constitute an emergency on my part

  6. #6
    rebekah is offline Member
    Join Date
    Dec 2014
    Posts
    4
    Rep Power
    0

    Default Re: I need help animating! Please make the arms move up and down

    Quote Originally Posted by Norm View Post
    Please post code that will compile and execute for testing. Be sure to wrap the code in code tags.
    " I don't understand what you mean by 'code that will compile and execute for testing"

  7. #7
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    Eastern Florida
    Posts
    20,001
    Rep Power
    33

    Default Re: I need help animating! Please make the arms move up and down

    I assumed that you had a java programming question.

    Why did you post this question on a java programming forum?
    If you don't understand my response, don't ignore it, ask a question.

  8. #8
    rebekah is offline Member
    Join Date
    Dec 2014
    Posts
    4
    Rep Power
    0

    Default Re: I need help animating! Please make the arms move up and down

    I do . i just want to know how to animate the arms.. lol

  9. #9
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    Eastern Florida
    Posts
    20,001
    Rep Power
    33

    Default Re: I need help animating! Please make the arms move up and down

    I do
    Please explain what that means.

    Post the java code that you are working on. Be sure to wrap the code in code tags.
    If you don't understand my response, don't ignore it, ask a question.

  10. #10
    rebekah is offline Member
    Join Date
    Dec 2014
    Posts
    4
    Rep Power
    0

    Default Re: I need help animating! Please make the arms move up and down

    background (90, 250, 229);
    fill(255,255,255,255);
    // lower body part
    ellipse (200,318,165,165);

    // middle body part
    ellipse( 200,207,135,135);

    // head part
    ellipse( 200, 100, 115,115);


    //top button
    strokeWeight(13);
    point(200,177);

    //middle
    point(200,208);

    // last dot
    point(200,240);

    //left eye
    strokeWeight(13);
    point( 180,81);

    //right eye
    point(221,81);

    //mouth
    strokeWeight(11);

    //mouth
    noStroke();
    fill(0,0,0);
    arc(201, 108, 76, 74, 4, 180);

    //nose
    fill(255, 102, 0);
    triangle(191, 88, 209, 88, 194, 124);

    //hat
    fill(20, 19, 19);
    rect(155,32,89,23);
    rect(177,-17,49,62);

    // arms


    draw= function() {



    var left1=72;
    var right1= 343;
    stroke(10, 9, 10);
    strokeWeight(1);
    fill (61, 38, 10);


    // left
    line(left1,left1+42,138,186);

    //right
    line(270,193,right1,right1-213);

    left1 = left1 + 33;
    right1 = right1+33;

  11. #11
    jim829 is offline Senior Member
    Join Date
    Jan 2013
    Location
    Northern Virginia, United States
    Posts
    6,226
    Rep Power
    13

    Default Re: I need help animating! Please make the arms move up and down

    As you were told before, that is not Java. It is JavaScript. This is a Java forum.

    Regards,
    Jim
    The JavaTM Tutorials | SSCCE | Java Naming Conventions
    Poor planning on your part does not constitute an emergency on my part

Similar Threads

  1. Make a folder and move a file to it
    By rosaage in forum New To Java
    Replies: 3
    Last Post: 11-14-2012, 10:54 PM
  2. Replies: 2
    Last Post: 10-31-2012, 04:31 PM
  3. Ball Move to mouse not animating.
    By Jossos in forum New To Java
    Replies: 6
    Last Post: 01-05-2012, 01:42 PM
  4. To make image move
    By mneskovic in forum New To Java
    Replies: 4
    Last Post: 05-08-2010, 08:23 PM
  5. How do I make My ball to move randomly?
    By whdbstjr90 in forum New To Java
    Replies: 4
    Last Post: 12-31-2007, 05:32 PM

Tags for this Thread

Posting Permissions

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