Java-Gaming.org Hi !
Featured games (83)
games approved by the League of Dukes
Games in Showcase (539)
Games in Android Showcase (133)
games submitted by our members
Games in WIP (603)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  Sprite  (Read 1255 times)
0 Members and 1 Guest are viewing this topic.
Offline Beppe

Junior Devvie





« Posted 2013-07-20 21:24:10 »

Hi,
where do you take sprite for your games??
Offline wessles

JGO Wizard


Medals: 77
Projects: 4
Exp: 3 years


Radirius Games


« Reply #1 - Posted 2013-07-20 21:31:48 »

Where do you take it? Can you be a little bit more specific?

Offline Beppe

Junior Devvie





« Reply #2 - Posted 2013-07-20 21:49:50 »

When a person want to create a game must draw the sprite , or coul take it from some sites or other?
I m a novice , i've study a little tutorial , now I want to try something but I'm not able to draw sprite...
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline wessles

JGO Wizard


Medals: 77
Projects: 4
Exp: 3 years


Radirius Games


« Reply #3 - Posted 2013-07-20 21:59:51 »

Oh, okay. You can just draw some little pictures, right? Not too hard. You could just copy paste stuff too! It doesn't matter. Just draw whatever. You could draw a potato for all it matters.
There are sites for pixel art:
Pixel Joint
Pixelation

You could also learn how:
Pixel Art Tutorial
List of 30 pixel art Tutorials

Or, you could get someone:
Stack Exchange thread on your question
Gamedev

Or you could just google it!

Offline Beppe

Junior Devvie





« Reply #4 - Posted 2013-07-21 09:26:06 »

Ok thanks I get start with this : http://www.hongkiat.com/blog/pixel-art-tutorials/ , the first tutorial ...
But i've a problem after drawing the cube if I load the file.png , java paint also the background and the tutorial don't explain like avoid this..
Offline Sammidysam
« Reply #5 - Posted 2013-07-21 14:33:23 »

Do you mean that it draws a white background around your image?  Adding transparency to your image will fix this.
Offline Beppe

Junior Devvie





« Reply #6 - Posted 2013-07-21 17:34:15 »

How?? Huh
Offline wessles

JGO Wizard


Medals: 77
Projects: 4
Exp: 3 years


Radirius Games


« Reply #7 - Posted 2013-07-21 17:40:36 »

Let me google that for you.

Offline Beppe

Junior Devvie





« Reply #8 - Posted 2013-07-21 19:10:16 »

Ok, i use paint like tutorial and with difficult i ve found ezimba a site that permit to modify image ...
Now ,another problem, i've set the trasparency and all work , but when i put my sprite to y=0 , my sprite not is in the down part of screen but a bit more up , so i think that because , the background is trasparence but exsist and so it is calculate like part of sprite and so don't solve my problem..
Offline wessles

JGO Wizard


Medals: 77
Projects: 4
Exp: 3 years


Radirius Games


« Reply #9 - Posted 2013-07-21 19:17:30 »

Is the file a .png? I think that only png's handle transparency, but I'm no graphics expert! Just make it a png. Takes up more memory, but is a lot more for games.

I.e
Does the file's name say:

sprite.jpeg

or

sprite.png

Also, DO NOT USE MICROSOFT PAINT!

DO NOT
DO NOT
DO NOT!

Use paint.net. It is way better, and don't worry. It's not a website, despite the name  Wink

Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Z-Man
« Reply #10 - Posted 2013-07-21 19:21:17 »

It sounds like the image is larger than your sprite. Java doesn't care that the sprite only takes up a (for example) 4x4 area of your 8x8 image. What you need to do is make sure that the actual image is the same size as the sprite. To do this simply crop the image to the size of the sprite. You can google how to crop an image in whatever image editor you're using.
Offline wessles

JGO Wizard


Medals: 77
Projects: 4
Exp: 3 years


Radirius Games


« Reply #11 - Posted 2013-07-21 19:23:32 »

whatever image editor you're using.

Did I mention paint.net? Paint is just so horrible. I can't even describe how awful an idea it is. You can't import plugins, it's not easy to use, it's a difficult interface... Just an overall bad piece of crap. Just use paint.net.

Online Jimmt
« League of Dukes »

JGO Kernel


Medals: 139
Projects: 4
Exp: 3 years



« Reply #12 - Posted 2013-07-21 19:34:23 »

MSPaint is great as a stripped down, simple, easy to use editor that doesn't deal with transparency. For simple things it's not too bad, for example making a background for your game.
Offline Beppe

Junior Devvie





« Reply #13 - Posted 2013-07-21 19:36:34 »

I've follow this tutorial so i ve used MS paint , and with ezimba a site to modify the image i set trasparency , i've also downloaded paint.net , so post image :
Before trasparency:
http://imageshack.us/photo/my-images/96/uln.png/
After modific:
http://imageshack.us/photo/my-images/41/nkr.gif/
If you want I coul post a screnn shot of programa whit y=0, sorry for language but I am not english and hate this language...
Offline gimbal

JGO Knight


Medals: 25



« Reply #14 - Posted 2013-07-22 11:10:23 »

Just make it a png. Takes up more memory, but is a lot more for games.

You'll have to explain that. How exactly will a PNG take up more memory than say a JPEG?
Online Jimmt
« League of Dukes »

JGO Kernel


Medals: 139
Projects: 4
Exp: 3 years



« Reply #15 - Posted 2013-07-22 14:10:15 »

http://gamedev.stackexchange.com/questions/48304/which-image-format-is-more-memory-efficient-png-jpeg-or-gif
PNG is usually the better choice. The minimal size difference (only because jpeg compresses better) is not worth the features jpeg lacks.
Offline relminator
« Reply #16 - Posted 2013-07-22 15:13:52 »

Add to that the fact that jpeg is lossy.
Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

rwatson462 (37 views)
2014-12-15 09:26:44

Mr.CodeIt (31 views)
2014-12-14 19:50:38

BurntPizza (62 views)
2014-12-09 22:41:13

BurntPizza (99 views)
2014-12-08 04:46:31

JscottyBieshaar (60 views)
2014-12-05 12:39:02

SHC (74 views)
2014-12-03 16:27:13

CopyableCougar4 (77 views)
2014-11-29 21:32:03

toopeicgaming1999 (138 views)
2014-11-26 15:22:04

toopeicgaming1999 (127 views)
2014-11-26 15:20:36

toopeicgaming1999 (38 views)
2014-11-26 15:20:08
Resources for WIP games
by kpars
2014-12-18 10:26:14

Understanding relations between setOrigin, setScale and setPosition in libGdx
by mbabuskov
2014-10-09 22:35:00

Definite guide to supporting multiple device resolutions on Android (2014)
by mbabuskov
2014-10-02 22:36:02

List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27

Resources for WIP games
by CogWheelz
2014-08-01 16:20:17

Resources for WIP games
by CogWheelz
2014-08-01 16:19:50

List of Learning Resources
by SilverTiger
2014-07-31 16:29:50
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!