
-----------------------------------
Kobe24
Mon May 19, 2014 1:42 pm

I cant move Kirby's eyes
-----------------------------------
Here is my code:

var x : int :=0
var direction : int :=1
for i : 1 .. 150
    Draw.FillBox (1, 10000, 10000, 1, i)


    var intfont : int
    intfont := Font.New ("Arial Black:20")
    Font.Draw ("KIRBY-Saving the Universe", 125, 350, intfont, blue) %Font

    %Kirby
    
    Draw.FillOval (280, 120, 40, 40, red) %Legs
    Draw.FillOval (370, 120, 40, 40, red)
    Draw.FillOval (320, 200, 100, 100, 36) %Body
    Draw.FillOval (240, 260, 30, 37, 36)
    Draw.FillOval (420, 180, 30, 37, 36) %hand


loop
 x += direction %this means add value of direction to x 
    
    if x = 280 then 
        direction := -5 
    end if 
    Draw.FillOval (x, 230, x, 25, black) %Eye
    delay (200)
    Draw.FillOval (x, 230, x, 25, black)
    
   
 
    Draw.FillOval (300, 238, 5, 10, white) %Glow in eyes
    Draw.FillOval (340, 238, 5, 10, white)
    Draw.FillOval (320, 180, 12, 12, red) %Mouth
    Draw.FillOval (320, 175, 6, 6, 85)
    Draw.FillOval (270, 200, 13, 8, 85)
    Draw.FillOval (370, 200, 13, 8, 85)

    %Kirby 2
    
    Draw.FillOval (65, 136, 30, 30, blue) %Legs
    Draw.FillOval (140, 136, 30, 30, blue)
    Draw.FillOval (100, 200, 75, 75, yellow) %Body
    Draw.FillOval (240, 260, 30, 37, 36)
    Draw.FillOval (175, 180, 20, 27, yellow) %hand



    Draw.FillOval (80, 220, 10, 15, black) %Eyes
    Draw.FillOval (120, 220, 10, 15, black)
    Draw.FillOval (120, 225, 4, 7, white) %Glow in eyes
    Draw.FillOval (80, 225, 4, 7, white)
    Draw.FillOval (100, 185, 7, 7, red) %Mouth
    Draw.FillOval (100, 182, 3, 3, 85)
    Draw.FillOval (140, 195, 8, 6, 85)
    Draw.FillOval (55, 195, 8, 6, 85)
    Draw.FillOval (35, 240, 20, 27, yellow)
   
     %Kirby 3
     
    Draw.FillOval (510, 136, 30, 30, blue)  %Legs
    Draw.FillOval (590, 136, 30, 30, blue)
    Draw.FillOval (550, 200, 75, 75, yellow) %Body

    Draw.FillOval (625, 180, 20, 27, yellow) %hand



    Draw.FillOval (530, 220, 10, 15, black) %Eyes
    Draw.FillOval (570, 220, 10, 15, black)
    Draw.FillOval (530, 225, 4, 7, white) %Glow in eyes
    Draw.FillOval (570, 225, 4, 7, white)
    Draw.FillOval (550, 185, 7, 7, red) %Mouth
    Draw.FillOval (550, 182, 3, 3, 85)
    Draw.FillOval (510, 195, 8, 6, 85)
    Draw.FillOval (590, 195, 8, 6, 85)
    Draw.FillOval (485, 240, 20, 27, yellow)
    delay (400)
end loop
end for


I cant make Kirby's eyes move a little form left to right. I am not asking for whoever helps me to make the eyes move; all I want is some guidance.
Thanks!

-----------------------------------
Dragon20942
Thu Jun 05, 2014 12:59 am

RE:I cant move Kirby\'s eyes
-----------------------------------
A more elegant solution to posting new threads every time is to "bump" your thread. This sends your thread back to the top of the topic, and is accomplished by commenting, typically using the word "bump" to indicate your intent.
Now if no one seems to offer help, and you are sure people can do it, it's likely that your topic is overtly basic and is covered in a walkthrough. Listen in class (if you're a student) or take some initiative and look for it yourself next time. I have included links for you in your first thread.
