Results 1 to 3 of 3

Thread: Sprite doubleshot

  1. #1

    Sprite doubleshot

    Problem:
    When collision test occurred on one type sprite, and two or more sprite are covered - all sprite deads because collision occurfor all covered sprite periodicaly. How make test for one covered sprite only (singleshot) ?

    Thanks for any solution.
    Ijcro.

  2. #2
    Legendary Member cairnswm's Avatar
    Join Date
    Nov 2002
    Location
    Randburg, South Africa
    Posts
    1,537

    Sprite doubleshot

    How about setting a flag on the one sprite and in the collision procedure check if it is set and then ignore it.
    William Cairns
    My Games: http://www.cairnsgames.co.za (Currently very inactive)
    MyOnline Games: http://TheGameDeveloper.co.za (Currently very inactive)

  3. #3

    Sprite doubleshot

    Its nice, but Collision method is called from DXSpriteEngine as loop.
    Ijcro.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •