Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Fourspriter: Alternate Version
#46
does the memcopy command create the background?

The saving and redrawing of the background is cool,
I had a question about that
say in R-Type for example
lets say there is an explosion sprite which has been on the screen for 1 second and needs to disappear, what if there is a ship flying into the explosion, wont the ship be considered as 'background' and be copied back to the screen as a static object?

lets say the explosion is 4 blocks in size on the screen, lets say the ship is 2 blocks in size so it covers half the explosion

the explosion is drawn first, then the ship
the ship moves forward , the ship sprite thinks the explosion is the background so it redraws that
the explosion dissapears and thinks the ship is the background so now even though the ship has moved forward it has a copy that stays still on the screen.


This problem can easily be avodied by the game developer
(some simple checks to see if 2 sprites are in the same position,) I just wondered if that is a problem with 4spriter or not.

By the way, is the version in this thread considered the best?
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 4 Guest(s)