why are some of my lines yellow andd some white

The Partridge Family were neither partridges nor a family. Discuss.
User avatar
chili
Site Admin
Posts: 3948
Joined: December 31st, 2011, 4:53 pm
Location: Japan
Contact:

Re: why are some of my lines yellow andd some white

Post by chili » May 23rd, 2012, 2:12 pm

That would be my guess as well.
Chili

kacper130320
Posts: 50
Joined: May 19th, 2012, 3:00 pm

Re: why are some of my lines yellow andd some white

Post by kacper130320 » May 23rd, 2012, 5:38 pm

thanks asimov
that was the problem
all fixed now

kacper130320
Posts: 50
Joined: May 19th, 2012, 3:00 pm

Re: why are some of my lines yellow andd some white

Post by kacper130320 » May 23rd, 2012, 5:50 pm

ok 2 problems solved
i got another one
the thing is that my top left horizontal line is longer than the bottom left horizontal
and everything seems fine
sorry about all my problems

User avatar
Asimov
Posts: 814
Joined: May 19th, 2012, 11:38 pm

Re: why are some of my lines yellow andd some white

Post by Asimov » May 23rd, 2012, 10:53 pm

Hi kacspar,

As for your horizontal lines it is hard to see what you are drawing without running your code, so I can't answer your question, however I am puzzled with your coordinates.

In places I notice you have put 0+x when instead you could just put x.

if x is equal to 300 and you add 0 to it then you still have 300.
However if you want to do an offset you can do 90+x or x+90 and that is fine, but 0+x seems pointless and makes your code harder to read.

I would advise just using x.
Unless there is some reason that I can't see.

Asimov
----> Asimov
"You know no matter how much I think I have learnt. I always end up hitting brick walls"
http://www.asimoventerprises.co.uk

kacper130320
Posts: 50
Joined: May 19th, 2012, 3:00 pm

Re: why are some of my lines yellow andd some white

Post by kacper130320 » May 24th, 2012, 5:39 am

yeah i put 0 + x becouse chilli did that and I pasted the code on page 1 so if you want to look at it feel free to do so.

kacper130320
Posts: 50
Joined: May 19th, 2012, 3:00 pm

Re: why are some of my lines yellow andd some white

Post by kacper130320 » May 26th, 2012, 7:00 am

oh sorry all solved just had to go through lessson 10(drawlines) there was something wrong with my code thx for helping guys.
and special thanks to chili for all the game programing tutorials.

Post Reply