Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 help with moving a cursor!
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
DanceMacabre




PostPosted: Mon May 01, 2006 7:58 pm   Post subject: help with moving a cursor!

I'm trying to move the circle from one spot to another if the user presses the up or down key. why isn't this working?
code:

loop
    loop
        Draw.FillOval (cursorx, cursory, 30, 30, black)
        if KEY_UP_ARROW or KEY_DOWN_ARROW = true then
            cursorx := 300
            cursory := 300
        end if
    end loop
    if KEY_UP_ARROW or KEY_DOWN_ARROW = true then
        cursorx := 60
        cursory := 102
    end if
end loop

I keep getting an error on both my "trues" here saying that operands of comparison operators must be of the same type, but I don;t know how to fix that. Can anyone lend a hand? Much appreciated. Smile
Sponsor
Sponsor
Sponsor
sponsor
Tony




PostPosted: Mon May 01, 2006 8:04 pm   Post subject: (No subject)

there is just so much wrong with that piece of code that... wow

start by familiarizing yourself with the Turing Walkthrough, you have much to learn
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
DanceMacabre




PostPosted: Mon May 01, 2006 8:20 pm   Post subject: (No subject)

yeah, I'm getting ahead of myself. It's true lol. Very Happy
tutorial will do me good
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 3 Posts ]
Jump to:   


Style:  
Search: