Sprite or Coca Cola?

Hi people, I have progressed a little in my RPG. Now I know how to chop the hero moves and draw him according to the user's directions instructions. I also have drawn few maps but I dont really know how to change them when the hero walks all the way the top of the screen. I have heard a lot aboutsprites, but I dont see how I can use them. Any advice will be warmly welcomed

return Thanks;

[413 byte] By [Static_mana] at [2007-9-29 19:57:26]
# 1
Please note, I dont really know what is exactly Sprite other than it deals with images.
Static_mana at 2007-7-15 22:02:08 > top of Java-index,Other Topics,Java Game Development...
# 2

A sprite is an object that has an image (or a way to draw itself, it doesn't necessarilly have to be an image), and a position (so it knows where to draw itself), an optionally a direction of movement, and a few more attributes. Basically what you described as the player would be a sprite.

What you are looking for (I think, if I understood your question correctly) is a [url=http://www.google.co.il/search?q=%2Bjava+%2Btutorial+%2B%22scrolling+background%22&ie=UTF-8&oe=UTF-8&hl=en]scrolling background[/url].

shmoove

shmoovea at 2007-7-15 22:02:08 > top of Java-index,Other Topics,Java Game Development...
# 3
Thanks that was it about the scrolling background. And for the Sprite is a little more clear.
Static_mana at 2007-7-15 22:02:08 > top of Java-index,Other Topics,Java Game Development...
# 4

> Thanks that was it about the scrolling background. And

> for the Sprite is a little more clear.

From:http://en.wikipedia.org/wiki/Sprite

In video game terms, a sprite is a 2 dimensional figure that represents some object in a game. For instance, sprites may be used to represent aircraft, missiles, or even people. On the Atari line of home computers, sprites were known as player-missile graphics.

On some systems, such as the Amiga and the Commodore 64, a sprite was a specific hardware implemented concept - a small image stored separately in RAM superimposed on the regular screen as part of the DAC process, allowing for much easier (faster) and more robust animation (sprite movements were by nature atomical with regards to screen refresh). Some modern graphics adapters use a hardware Sprite to draw the mouse cursor.

See also BOB ("blitter object").

Thus a sprite was really an Object that was rendered by special hardware that was independent

of the CPU and thus relieved it of this burden and made it much faster and smoother,

Sprites however were limited to 16 colors and 16 pixels in width (One 16 bit integer).

A BOB (Blitter Object) didn't have the limits of Sprite, and thus the term sprite is now somewhat

misused because what people really are talking about is a BOB.

This is also why HyperView http://hyperbyte.ab.ca/hyperview has GOBs

Like a BOB (Blitter Object) but means "Graphics OBject."

(T)

tswaina at 2007-7-15 22:02:08 > top of Java-index,Other Topics,Java Game Development...