Author Topic: add dynamic sprites  (Read 11769 times)

Tanja

  • Clever
  • Fanatic
  • ***
  • Posts: 606
    • View Profile
Re: add dynamic sprites
« Reply #15 on: 2007-12-03, 01:08:08 PM »
The path can just as easily be defined (or moved) to always indicate the top left corner of the sprite

but in order to move a whole path around one has to type every x/y in new.
i remember from version 1 there was the possibility to define one path, and then to position several sprites at the map, all moving accordingly to the path at their own place.
to do that with sgdk2, would i have to add/substract pixels from the sprites x/y at every frame?

bluemonkmn

  • SGDK Author
  • Administrator
  • Fanatic
  • *****
  • Posts: 2761
    • ICQ Messenger - 2678251
    • MSN Messenger - BlueMonkMN@gmail.com
    • View Profile
    • http://sgdk2.sf.net/
    • Email
Re: add dynamic sprites
« Reply #16 on: 2007-12-03, 06:59:10 PM »
I did not think it would be a common thing to make multiple different sized sprites follow the same path, so I didn't design a solution for it, but you're right -- that would be a good reason for FollowPath to have a RelativePosition parameter.  Do you think you could figure out how to add such a parameter to your project's FollowPath function?  (That would solve all your problems, right?)

Tanja

  • Clever
  • Fanatic
  • ***
  • Posts: 606
    • View Profile
Re: add dynamic sprites
« Reply #17 on: 2007-12-04, 02:07:55 PM »
i will see when the right time is there.
until now i haven't much thought about enemies and their paths, you know? the main point is defining other things, because it shall be NO fighting game.