Author Topic: Sprite path tools  (Read 2664 times)

0 Members and 1 Guest are viewing this topic.

Offline PhotonStorm

  • ZX 81
  • *
  • Posts: 5
  • Karma: 2
    • View Profile
    • PhotonStorm
Sprite path tools
« on: July 20, 2011 »
Hey guys,

This is more for game dev really, but I was just curious what you use (if anything!) to handle sprite movement paths?

For example the sweeping motion of ships in a shoot-em-up.

I'm aware most of the older games would have just used basic math. But I'm hoping to either find (or if needs be, create) something more visual to package into the AS3 game library I work on. If nothing exists I'm happy to write one, but this must have been encountered by pretty much every game dev ever, so I'm hopeful to not have to re-invent wheels here!

Cheers,

Rich

Offline Shockwave

  • good/evil
  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 17414
  • Karma: 498
  • evil/good
    • View Profile
    • My Homepage
Re: Sprite path tools
« Reply #1 on: July 20, 2011 »
Hi PhotonStorm,

You'll probably want to look into splines.
Catmuls are ideal because you can guarantee that the sprites will pass through the control points.

Relsoft posted a nice example;

http://www.dbfinteractive.com/forum/index.php?topic=3878.msg52294#msg52294
Shockwave ^ Codigos
Challenge Trophies Won: