Results 1 to 2 of 2

Thread: Creation of CollisionOutline by using a Resource/Sprite

  1. #1
    Serf
    Join Date
    Sep 2007
    Location
    Germany
    Posts
    2

    Question Creation of CollisionOutline by using a Resource/Sprite

    Hey guys!

    At the Moment I'm trying to find a way for my application to create a CollisionOutline for a specific CL_Sprite depending on its first frame but neither of my ideas is working...
    The points are:
    1. I have no chance to create it by using my Sprite because there is no constructor available for this way
    2. Stuff like
      Code:
      m_outline = new CL_CollisionOutline(m_sprite->get_frame_pixeldata(0));
      (getting the image of the first frame the sprite, I want to create the outline for, owns) doesn't work either
    3. It seems the path, the first image the sprite is created from, isn't stored anywhere (well, I could eventually do this myself in my code but this feels like a nasty way around the problem)
    4. I couldn't figure out how to easily get the path of the sprite, I'm referring to in my question, which is specified in my resources.xml
    5. I couldn't figure out how the "create by resource" constructor of CL_CollisionOutline works, because it seems, that it's nowhere documented what I have to put in my resource.xml


    ...or am I suffering from a fundamental design flaw?
    btw: I'm using the official ClanLib 0.8
    Last edited by Nipsky; 09-01-2007 at 07:15 AM. Reason: forgot version of clanlib used

  2. #2
    Serf
    Join Date
    Sep 2007
    Location
    Germany
    Posts
    2

    Default

    Hmm... hasn't anybody ever encountered one of these problems? How do you manage your Outlines and especially their loading when you use a big number of sprites - do you do everything "manually" (in terms of coding)?
    This problem is really blocking all my effort regarding the use of ClanLib *sigh*

Similar Threads

  1. Novashell Game Creation Kit - A 2D game maker thingie
    By Seth in forum Official ClanLib SDK Forums
    Replies: 6
    Last Post: 07-30-2012, 12:08 PM
  2. Sprite patch for 0.8
    By Trigve in forum Official ClanLib SDK Forums
    Replies: 2
    Last Post: 07-19-2007, 12:41 AM
  3. Custom resource combined with sprite
    By tompawarrior in forum Official ClanLib SDK Forums
    Replies: 0
    Last Post: 07-17-2007, 05:30 PM
  4. Green border around rotated sprite on ATI cards - Solved!
    By pTymN in forum Official ClanLib SDK Forums
    Replies: 0
    Last Post: 11-06-2006, 08:44 PM
  5. resource.dat
    By redink1 in forum Other RTsoft Games
    Replies: 1
    Last Post: 11-15-2002, 10:08 PM

Bookmarks

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
  •