#9992 - RaBBi - Sun Aug 24, 2003 9:36 am
Hello,
I keep on doing a RPG (I know it's a hard task, but I have time, don't worry ^^) and I finally manage to do a decent map with multilayer ^^
And now, I'd like to move the hero sprite through this map.
First, I scrolled the BGs, it was good but it was because the hero was alone on map.
But now, I gave life to this map by placing some NPC sprites which do thier stuff.
And the problem is that scrolling bg to follow hero sprite move is not a good way anymore...Cause NPC sprites are scrolling with it.
In fact, each VBlank, the X and Y position of NPC are calculated and set...
So I'd like to know how can I "pan" screen and not scroll the BGs to always have hero sprite displayed, and NPC sprites keep their positions even if they are off screen.
The screen would be as a "camera" which follow the hero.
Thank you ^^
_________________
Sorry for my poor english, but it would be worst for you to understand me if I speak in my native language, French ^^
I keep on doing a RPG (I know it's a hard task, but I have time, don't worry ^^) and I finally manage to do a decent map with multilayer ^^
And now, I'd like to move the hero sprite through this map.
First, I scrolled the BGs, it was good but it was because the hero was alone on map.
But now, I gave life to this map by placing some NPC sprites which do thier stuff.
And the problem is that scrolling bg to follow hero sprite move is not a good way anymore...Cause NPC sprites are scrolling with it.
In fact, each VBlank, the X and Y position of NPC are calculated and set...
So I'd like to know how can I "pan" screen and not scroll the BGs to always have hero sprite displayed, and NPC sprites keep their positions even if they are off screen.
The screen would be as a "camera" which follow the hero.
Thank you ^^
_________________
Sorry for my poor english, but it would be worst for you to understand me if I speak in my native language, French ^^