Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
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.
  724  855  599  923  575  468  400  206  147  564  878  823  652  556 bxor cross forever
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

Possibly Related Threads…
Thread Author Replies Views Last Post
  Drawing an ellipse PhilOfPerth 26 5,006 07-06-2023, 09:30 PM
Last Post: OldMoses
Question How to use sprite sheets? 40wattstudio 12 3,327 09-13-2022, 01:53 AM
Last Post: TerryRitchie
Photo Ellipse trouble james2464 14 3,000 08-25-2022, 10:52 PM
Last Post: james2464

Forum Jump:


Users browsing this thread: 1 Guest(s)