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

Username:   Password: 
 RegisterRegister   
 turing - help w merging
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
comp_help




PostPosted: Wed Jun 03, 2009 8:05 pm   Post subject: turing - help w merging

What is it you are trying to achieve?
I am trying to merge a car.

What is the problem you are having?
The full car doesn't show up.

Describe what you have tried to solve this problem
I have tried my best, but only the bottom part shows up.


Post any relevant code (You may choose to attach the file instead of posting the code if it is too long)
The code is below:

Turing:


const midx := maxx div 2
const midy := maxy div 2
var x: int:= 100
var car: int

%left car
%top body
drawbox (x - 30, midy - 40, x + 30, midy - 10, black)
%bottom body
drawbox (x - 50, midy - 40, x + 50, midy - 60, black)
%middle line
drawline (x - 30, midy - 40, x + 30, midy - 40, white)
%left wheel
drawfilloval (x - 25, midy - 60, 10, 10, white)
drawoval (x - 25, midy - 60, 10, 10, black)
%right wheel
drawfilloval (x + 25, midy - 60, 10, 10, white)
drawoval (x + 25, midy - 60, 10, 10, black)
car:= Pic.New (x - 60, x + 60, midy + 10, midy - 70)

Pic.Draw (car, 0, 0, picMerge)




Please specify what version of Turing you are using
Turing 4.1.1
Sponsor
Sponsor
Sponsor
sponsor
TheGuardian001




PostPosted: Wed Jun 03, 2009 8:24 pm   Post subject: Re: turing - help w merging

Actual usage:

Pic.New(x,y,x2,y2)

your usage:

Pic.New(x,x2,y,y2)

inputting them in the correct order should fix it.
comp_help




PostPosted: Wed Jun 03, 2009 8:29 pm   Post subject: RE:turing - help w merging

Omg, so sad. I spent like 1 hour trying to find out what was wrong, but it was just a careless mistake. Tyvm The Guardian001, you saved me another hour. lol
Btw, nice signature, I understand it. lol
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: