help moving a sprite in a ellipse
#5
Yeah _Pi() is a handy multiplier function Smile

Would it be anymore efficient if QB64pe had a multiplier for RND?

I should note my ellipse demo was a quick throw up and first best mod would be to use the ell() as sprite centers as apposed to Left, Top corners ie subtract -_Width(sprite) *.5, _height(sprite) and Step (_width(_sprite, _height(sprite))... in the destination section of _putimage....  that would center the 2 sprites to the center of screen.

Compare Terries always recalcs the sprite positions, mine calcs all positions before running once and then for first sprite to do tilts useing the rotate sub to adjust for tilts in orbits.
b = b + ...
Reply


Messages In This Thread
help moving a sprite in a ellipse - by Cobalt - 07-06-2023, 12:21 AM
RE: help moving a sprite in a ellipse - by bplus - 07-06-2023, 01:48 AM
RE: help moving a sprite in a ellipse - by bplus - 07-06-2023, 12:13 PM
RE: help moving a sprite in a ellipse - by bplus - 07-06-2023, 01:02 PM
RE: help moving a sprite in a ellipse - by Cobalt - 07-06-2023, 05:33 PM



Users browsing this thread: 3 Guest(s)