why are some of my lines yellow andd some white
-
- Posts: 50
- Joined: May 19th, 2012, 3:00 pm
Re: why are some of my lines yellow andd some white
thanks asimov
that was the problem
all fixed now
that was the problem
all fixed now
-
- Posts: 50
- Joined: May 19th, 2012, 3:00 pm
Re: why are some of my lines yellow andd some white
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
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
Re: why are some of my lines yellow andd some white
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
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
"You know no matter how much I think I have learnt. I always end up hitting brick walls"
http://www.asimoventerprises.co.uk
-
- Posts: 50
- Joined: May 19th, 2012, 3:00 pm
Re: why are some of my lines yellow andd some white
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.
-
- Posts: 50
- Joined: May 19th, 2012, 3:00 pm
Re: why are some of my lines yellow andd some white
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.
and special thanks to chili for all the game programing tutorials.