Re: Re: also

by (Login MCalkins)
Moderator

I was going by the width of the sprite, not the diameter of the circle.

As it is, those numbers might still be off. I didn't check them very well.

IF curtpos + (speed * 15) < 240 THEN curtpos = curtpos + (1 / 2) * speed
IF curtpos + (speed * 15) > 240 THEN curtpos = curtpos - (1 / 2) * speed

could probably be changed to something like:

curtpos = curtpos + SGN(240 - (curtpos + (speed * 15)))

I haven't tested that, but it should work, or should be easily fixable to work.

I've haven't really kept up with the thread very well. I've been lazy, and have been doing other things. I will review the thread again later. I noticed your post in the big programs forum, but I haven't gotten around to examining it yet.

Regards,
Michael



    
This message has been edited by MCalkins on Sep 8, 2011 5:11 AM
This message has been edited by MCalkins on Sep 8, 2011 4:58 AM

Posted on Sep 8, 2011, 4:57 AM

Respond to this message   

Return to Index


Response TitleAuthor and Date
Re: Re: also on Sep 8