Having the Parabola show on the entire screen
Author |
Message |
Nikestars
|
Posted: Thu Nov 14, 2013 6:22 pm Post subject: Having the Parabola show on the entire screen |
|
|
I need a parabola going across my output screen because I will be animating it later.
I'm having trouble with having my entire parabola showing on my output screen. What I'm trying to do is show the entire parabola and not just the tip. I'm animating a ball for the parabola but I need to see the parabola working before I animate it. My goal is to animate a parabola of a ball going across the screen. I have animated it and it works(the parabola I'm having trouble with below) but it starts off the screen (in the negatives) and there is long pause between another animation I'm doing.
I need to widen it and not have it start in the negatives and stop at the negatives.
I haven't been taught parabolas in math yet so that's why I'm struggling with this.
I have changed numbers but nothing is working for me. I'm not sure what to do to fix it
<Add your code here>
setscreen ("graphics:1266;910")
var y,yx
for decreasing x : 1400..10
y := (-1) * (x - 1150) ** 2 + 870
Draw.FillOval (x, y, 2, 2, blue)
end for
for x4: 1..370
y2:= (-1) * (x4 - 350) ** 2 + 500
Draw.FillOval (x4,y2,2,2,yellow)
end for
*This is the parabola, not the animated one with the ball. I having problems with both parabolas(both start in the negatives and finish in the negatives). Once I know how to fix this program I'll be able to animate it later. Thanks!
Please specify what version of Turing you are using
I'm using 4.1.1 for windows |
|
|
|
|
|
Sponsor Sponsor
|
|
|
Insectoid
|
Posted: Thu Nov 14, 2013 7:59 pm Post subject: RE:Having the Parabola show on the entire screen |
|
|
Your screen by default is 400x600 (I think). Can you transform your parabola to fit within these values? |
|
|
|
|
|
Nikestars
|
Posted: Thu Nov 14, 2013 9:02 pm Post subject: Re: Having the Parabola show on the entire screen |
|
|
I think so but I need it to fit my screen because I have another program that has my background and other animations finished, I just need to add this part to it. I've tried adjusting it but it still has a long delay time and it just show the tip of the parabola. |
|
|
|
|
|
Insectoid
|
Posted: Thu Nov 14, 2013 9:10 pm Post subject: RE:Having the Parabola show on the entire screen |
|
|
Maybe you should provide all of the code so we can see what you're doing. A snippet does not portray how the whole thing interacts and the error may very well lay somewhere else. |
|
|
|
|
|
|
|