A Flash Developer Resource Site

Results 1 to 10 of 10

Thread: Selecting/moving certain parts for sprites

  1. #1
    Always needs help marinebro0306's Avatar
    Join Date
    Jul 2005
    Location
    Philadelphia
    Posts
    166

    Selecting/moving certain parts for sprites

    Is there anyway to remove a certain part of an object and move it around. For instance, if I got a sprite sheet from the internet, could I select a square around a certain sprite and move it around?

    Thanks!
    Jeff

  2. #2
    Some dude, says hi Ultra Pulse's Avatar
    Join Date
    Jun 2005
    Posts
    262
    not in KM, use MSpaint or photoshop, Althought I wish we could.

  3. #3
    Senior Member
    Join Date
    Dec 2002
    Location
    Netherlands
    Posts
    1,632
    You can use a mask to accomplish that.

  4. #4
    Always needs help marinebro0306's Avatar
    Join Date
    Jul 2005
    Location
    Philadelphia
    Posts
    166
    Quote Originally Posted by w.brants
    You can use a mask to accomplish that.
    How do I do that? I know you can use masks to only show a portion of a movie, but how can i cut something out and move it around at will?

    For instance, if I drew a face as one drawing and I wanted to tilt the top part of his head and make his brains come out, but not the bottom part, how would I select only the top part and move it around if it is attached to the rest of the face?

  5. #5
    Degenerate and baise art thou. docree's Avatar
    Join Date
    Feb 2001
    Location
    USA
    Posts
    390
    Simply, KoolMoves can not edit sprite sheets...
    Same thing with all other Vector based programs.

    Vector is "fip" data based and roster is "pixle" based.
    [Roster is bmp. jpg. gif. and most sprite sheets...]

    Some tricks can be done after importing the sprites into KoolMoves.
    You can change the shape holding the "rastor" fill by adding points and curves.

    http://albinoblacksheep.com recently had a tutorial on sprites.
    [But it does not include KoolMoves.]

  6. #6
    Senior Member
    Join Date
    Dec 2002
    Location
    Netherlands
    Posts
    1,632
    I didn't know exactly what you ment by sprite sheets. Now I'm understanding it a bit better my advice would be to wait a few weeks until flash player 8 becomes available.

    Using flash 8 scripting you could create a bitmap image from the sprite sheet.
    Next step is to create a bitmap image the size of the sprite and assign it to a movieclip. Now you can copy a rectangle directly from the sprite sheet bitmap into the sprite bitmap. You would only have to change the source rectangle and copy again each frame to animate the sprite.

  7. #7
    Senior Member
    Join Date
    Dec 2002
    Location
    Netherlands
    Posts
    1,632
    Attached you'll find a flash 8 example to show you how you could use a sprite sheet (The sprite sheet isn't my design).
    Attached Files Attached Files
    Last edited by w.brants; 09-16-2005 at 12:17 AM.

  8. #8
    Always needs help marinebro0306's Avatar
    Join Date
    Jul 2005
    Location
    Philadelphia
    Posts
    166
    Quote Originally Posted by w.brants
    Attached you'll find a flash 8 example to show you how you could use a sprite sheet (The sprite sheet isn't my design).
    I installed Flash 8 and all I see when I open the .swf in IE is a box with a greenish gradient.

  9. #9
    Senior Member
    Join Date
    Dec 2002
    Location
    Netherlands
    Posts
    1,632
    Did you extract all files into a folder and open the html file ?
    The sprite sheet is a separate transparent gif file. If try to run the swf file without the gif file extracted in the same folder it won't run.

  10. #10

Posting Permissions

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




Click Here to Expand Forum to Full Width

HTML5 Development Center