Questions about Sprites

Hi, I'm writing my first Sprite-oriented game, and I've read a bunch of posts on this forum on the topic, but I still had a few questions. Thanks very much for any answers.

1. I've seen single-thread sprite engines that handle animation only. Is there a way for a single-thread sprite engine to also handle sprite movement? What if the sprites also need to have different behaviors?

2. Is it conventional for sprites to stop updating if they are not onscreen?

Thanks for any help,

Bret

[519 byte] By [bh94704a] at [2007-9-28 6:22:49]
# 1

as far as question 2 goes... it depends on the kind of game you're making. Like if you made something like Mario Bros, a goomba between two pipes won't start updating until it's onscreen. But if you were making a foot-raceing game and the opponent was so far ahead that it's off the screen, then you need to update it to keep the race normal.

Woogleya at 2007-7-9 17:34:41 > top of Java-index,Other Topics,Java Game Development...
# 2
Good point...thanks for the reply. For any other reader's reference, it's kind of a cartoony Diablo-esque game.
bh94704a at 2007-7-9 17:34:41 > top of Java-index,Other Topics,Java Game Development...
# 3
Diablo?Well you can update character positions, but you don't really need to call the drawing routine for the sprite.
javatypoa at 2007-7-9 17:34:41 > top of Java-index,Other Topics,Java Game Development...
# 4
I seem to remember the monster AI stopped being processed for monsters about 1 screen outside the viewable area.
Abusea at 2007-7-9 17:34:41 > top of Java-index,Other Topics,Java Game Development...