YouTube home Comedy Week on YouTube
Upload

Creating a Sprite Sheet

DesignsbyZephyr DesignsbyZephyr·63 videos
6,557
17,671
Like     Dislike 7

Sign in to YouTube

Sign in with your Google Account (YouTube, Google+, Gmail, Orkut, Picasa, or Chrome) to like DesignsbyZephyr's video.

Sign in to YouTube

Sign in with your Google Account (YouTube, Google+, Gmail, Orkut, Picasa, or Chrome) to dislike DesignsbyZephyr's video.

Sign in to YouTube

Sign in with your Google Account (YouTube, Google+, Gmail, Orkut, Picasa, or Chrome) to add DesignsbyZephyr's video to your playlist.

Published on Aug 31, 2012

This tutorial will teach you about sprite sheets and how they are loaded as well as some information on color.

Let me know what style game we should build with our engine: http://svy.mk/QYKG4b

I will include the final project source when the game is complete, and will update this description with them at a later date.

If you enjoyed the video please Subscribe, Like or Comment, and let me know what's up!

Website: http://www.vanZeben.ca
LiveStream: http://www.twitch.tv/vanZeben

Outro Song:
Approaching Nirvana - Pirate's Call
Check them out here: http://www.youtube.com/user/Approachi...

Used in accordance with: http://www.youtube.com/watch?v=m0HbjN...

Loading icon Loading...

Loading icon Loading...

Loading icon Loading...

The interactive transcript could not be loaded.

Loading icon Loading...

Loading icon Loading...

Ratings have been disabled for this video.
Rating is available when the video has been rented.
This feature is not available right now. Please try again later.

Top Comments

  • DracoSense

    Used all the code and made sure its exactly the same as Zephyr's yet i get this error (when running it).

    Exception in thread "main" java.lang.IllegalArgumentExcep­tion: input == null! at javax.imageio.ImageIO.read(Unk­nown Source)

    Note that when i said i used all the code i obviously put my own names for classes but made them consistent. Please help any1?

    · 8

    Sign in to YouTube

    Sign in with your YouTube Account (YouTube, Google+, Gmail, Orkut, Picasa, or Chrome) to rate DracoSense's comment.

    Sign in to YouTube

    Sign in with your YouTube Account (YouTube, Google+, Gmail, Orkut, Picasa, or Chrome) to rate DracoSense's comment.
  • hugovanwettum

    TADAAA!

    I made a download link for the sprite sheet:

    Go to dropbox.com, and paste this behind it:

    /u/60012638/SpriteSheet.png

    · 5

    Sign in to YouTube

    Sign in with your YouTube Account (YouTube, Google+, Gmail, Orkut, Picasa, or Chrome) to rate hugovanwettum's comment.

    Sign in to YouTube

    Sign in with your YouTube Account (YouTube, Google+, Gmail, Orkut, Picasa, or Chrome) to rate hugovanwettum's comment.

All Comments (184)

Sign in now to post a comment!
  • Andrew Andrei

    input == null means it has no image to load

    ·

    Sign in to YouTube

    Sign in with your YouTube Account (YouTube, Google+, Gmail, Orkut, Picasa, or Chrome) to rate Andrew Andrei's comment.

    Sign in to YouTube

    Sign in with your YouTube Account (YouTube, Google+, Gmail, Orkut, Picasa, or Chrome) to rate Andrew Andrei's comment.
    in reply to DracoSense (Show the comment)
  • Michael Choi

    how?

    ·

    Sign in to YouTube

    Sign in with your YouTube Account (YouTube, Google+, Gmail, Orkut, Picasa, or Chrome) to rate Michael Choi's comment.

    Sign in to YouTube

    Sign in with your YouTube Account (YouTube, Google+, Gmail, Orkut, Picasa, or Chrome) to rate Michael Choi's comment.
    in reply to Bob Lee (Show the comment)
  • Koen van den Brink

    wow, thanks man, I tried for half an hour, and you just saved my weekend xD

    ·

    Sign in to YouTube

    Sign in with your YouTube Account (YouTube, Google+, Gmail, Orkut, Picasa, or Chrome) to rate Koen van den Brink's comment.

    Sign in to YouTube

    Sign in with your YouTube Account (YouTube, Google+, Gmail, Orkut, Picasa, or Chrome) to rate Koen van den Brink's comment.
    in reply to fawful467 (Show the comment)
  • Bob Lee

    nvm i solved my problem. :)

    ·

    Sign in to YouTube

    Sign in with your YouTube Account (YouTube, Google+, Gmail, Orkut, Picasa, or Chrome) to rate Bob Lee's comment.

    Sign in to YouTube

    Sign in with your YouTube Account (YouTube, Google+, Gmail, Orkut, Picasa, or Chrome) to rate Bob Lee's comment.
    in reply to Bob Lee (Show the comment)
  • Bob Lee

    im having a similar problem to Draco, except i double checked the name of my image, and i am getting:

    Exception in thread "main" java.lang.IllegalArgumentExcep­tion: input == null! at javax.imageio.ImageIO.read(Ima­geIO.java:1348) at gfx.SpriteSheet. init(SpriteSheet.java:25) at game.Game. init (Game.java:40) at game.Game.main(Game.java:30)

    Java Result: 1

    ·

    Sign in to YouTube

    Sign in with your YouTube Account (YouTube, Google+, Gmail, Orkut, Picasa, or Chrome) to rate Bob Lee's comment.

    Sign in to YouTube

    Sign in with your YouTube Account (YouTube, Google+, Gmail, Orkut, Picasa, or Chrome) to rate Bob Lee's comment.
  • Neterskian

    It means that you're not calling the right file: private SpriteSheet spriteSheet = new SpriteSheet("/sprite_sheet.png­");

    Check that the name of the sprite sheet image you made is the same as in the code (between the quotes). That fixed it for me :)

    ·

    Sign in to YouTube

    Sign in with your YouTube Account (YouTube, Google+, Gmail, Orkut, Picasa, or Chrome) to rate Neterskian's comment.

    Sign in to YouTube

    Sign in with your YouTube Account (YouTube, Google+, Gmail, Orkut, Picasa, or Chrome) to rate Neterskian's comment.
    in reply to DracoSense (Show the comment)
  • Zack Censored

    Hmmm

    ·

    Sign in to YouTube

    Sign in with your YouTube Account (YouTube, Google+, Gmail, Orkut, Picasa, or Chrome) to rate Zack Censored's comment.

    Sign in to YouTube

    Sign in with your YouTube Account (YouTube, Google+, Gmail, Orkut, Picasa, or Chrome) to rate Zack Censored's comment.
    in reply to Wagnva (Show the comment)
  • fawful467

    press F5 and it should refresh

    ·

    Sign in to YouTube

    Sign in with your YouTube Account (YouTube, Google+, Gmail, Orkut, Picasa, or Chrome) to rate fawful467's comment.

    Sign in to YouTube

    Sign in with your YouTube Account (YouTube, Google+, Gmail, Orkut, Picasa, or Chrome) to rate fawful467's comment.
    in reply to SuperTruMoo (Show the comment)
  • GamingBullsTV

    System.out.println()(pixels[i]­); it says The left-hand side of an assignment must be a variable help pls

    ·

    Sign in to YouTube

    Sign in with your YouTube Account (YouTube, Google+, Gmail, Orkut, Picasa, or Chrome) to rate GamingBullsTV's comment.

    Sign in to YouTube

    Sign in with your YouTube Account (YouTube, Google+, Gmail, Orkut, Picasa, or Chrome) to rate GamingBullsTV's comment.
  • Wagnva

    delete the .png in your path

    ·

    Sign in to YouTube

    Sign in with your YouTube Account (YouTube, Google+, Gmail, Orkut, Picasa, or Chrome) to rate Wagnva's comment.

    Sign in to YouTube

    Sign in with your YouTube Account (YouTube, Google+, Gmail, Orkut, Picasa, or Chrome) to rate Wagnva's comment.
    in reply to Zack Censored (Show the comment)
  • Loading comment...
Loading...
Advertisement

Next in Java 2D Game Engine Development: Season 1 Episodes

Suggestions

Loading...
Working...
Sign in to add this to Watch Later