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

Username:   Password: 
 RegisterRegister   
 How to make a rectangle slide without going off screen
Index -> Programming, Turing -> Turing Help
Goto page Previous  1, 2
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
evildaddy911




PostPosted: Mon Oct 24, 2011 7:09 am   Post subject: Re: How to make a rectangle slide without going off screen

zren is right.
what you need to do is use those x and y variables that you created. other than that everything else is almost perfect
TIP: you can use variables for drawfillbox parameters

EDIT:
Oh and if you arent using the procedure Start anywhere else, then take it out. Cuz then you need to put Start to run the procedure
Sponsor
Sponsor
Sponsor
sponsor
Aange10




PostPosted: Mon Oct 24, 2011 7:37 am   Post subject: Re: How to make a rectangle slide without going off screen

evildaddy911 @ 24/10/2011, 6:09 am wrote:

TIP: you can use variables for drawfillbox parameters


with a little editing...

TIP: use variables for drawfillbox parameters
tg851




PostPosted: Fri Nov 04, 2011 10:09 am   Post subject: Re: How to make a rectangle slide without going off screen

pardon me while i go bang my head against a wall....

here you can haz proper varibal set,the movment is up to you(hint:its a pain in the ass)


Turing:

var y1,x1,x2,y2 :int
y1:=10
x1:=10
x2:=20
y2:=20

var chars : array char of boolean
        loop
            Input.KeyDown (chars)
        drawfillbox (x1,y1,x2,y2,black)
            %the movment code

have fun,also stopping the box from leaving the screen is HARD(don't count on it unless you have a good grip of Turing)
matthewrohaly




PostPosted: Fri Nov 04, 2011 10:55 am   Post subject: Re: How to make a rectangle slide without going off screen

tg851 @ Fri Nov 04, 2011 10:09 am wrote:
pardon me while i go bang my head against a wall....

here you can haz proper varibal set,the movment is up to you(hint:its a pain in the ass)


Turing:

var y1,x1,x2,y2 :int
y1:=10
x1:=10
x2:=20
y2:=20

var chars : array char of boolean
        loop
            Input.KeyDown (chars)
        drawfillbox (x1,y1,x2,y2,black)
            %the movment code

have fun,also stopping the box from leaving the screen is HARD(don't count on it unless you have a good grip of Turing)


tg851, even though someone may not understand or may have said the wrong thing doesn't mean you need to impolite about it. People come here for help, and we are here to assist, not to offend.

Please think about what you are writing before posting, people are only looking for help.
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 2 of 2  [ 19 Posts ]
Goto page Previous  1, 2
Jump to:   


Style:  
Search: