[Tutor] calculation issue.
eryksun
eryksun at gmail.com
Mon Aug 27 00:47:14 CEST 2012
On Sun, Aug 26, 2012 at 6:19 PM, Matthew Ngaha <chigga101 at gmail.com> wrote:
>
> if this Pizza (pizza.b) was on hold at position y = 100 and the
> previous pizza(pizza.a) had fallen an additional 132 pixels to 232
> before pizza.b was released, shouldn't pizza.b still only be at
> position y = 100? how did it gain the additional 100 pixels if it was
> on hold while pizza.a reached 232. i understand how you've worked it
> out, just need more clarification on how the Pizza.b fell an addition
> 100 pixels making its total distance 200.
The top of pizza.b is at y=100, but the bottom of pizza.b is at y=199
(sorry, I had a one-off error there). The gap between the pizzas is
232 - 199 - 1 = 32 pixels, from y=200 to y=231.
> Sorry Alan the code was rather big, i didnt want it to be pain for
> you guys trying to help. here is the full code. I do understand the
You can link to the full code at a site such as pastbin.com, but be
sure to include the relevant parts in your question.
More information about the Tutor
mailing list