STARCATCHER!!!

Okay now that i’ve got your attention. I just wanted to post another screenie. In this screen the catcher is extended (the yellow line is the tether, the redline is still there just hidden). I do have a problem now. It won’t wrap around until the white square wraps around because it’s position is linked to it. So how do I get the catcher to wrap around on it’s own in the correct position relative to the white square? That what i’m trying to figure out.

Awesome graphics with tether extended!

Screenshot awesomeness with the tether extended!

Okay you can see the tether extended in the previous image, now the problem of the catcher not wrapping around. –

Uhoh something's wrong here, where's the catcher?

Whoops, what’s going on here?

Essentially the wraparound function says “hey it’s off the screen let’s pop it back to the other side”. And then after it does this it goes “Hey wait a minute i’m still attached at the hip to that big white square let’s pop back over into position”. There’s a couple of possible solutions. One has to do with order of operations. Right now the wrap function is at the bottom of update, which means it’s called last. I could rearrange the order in hopes that I might get it to not update position until it has shown up, this doesn’t sound right, in fact it doesn’t sound like it should work at all. Another idea is to have the catcher “lead” which means technically the ship should follow, this might allow warping of the catcher, but then might have the reverse effect of the ship not wrapping until the catcher is over. Another solution might be just manually adjusting the catcher position to include wrapping, this requires me to know something about the length of the tether and it’s entry point on the otherside. I just thought of one other possibility, and that is I could make sure the catcher actually moves seperately from the ship. Essentially it would still be in the same position when it starts out, but I manually change it’s velocity to match that of the ship resulting in what appears to be two connected entities. It would have the advantage of the fact that it’s independantly moving. Then i’d just have to determine the point where the tether intersects the bounds and then draw a line from that point to the catcher. It has to be like a continuation of the previous line. I’m unsure how to do this. Anyone out there (who still actually reads this) give me any ideas?

Keith

Comments are closed.