YesNoOk
avatar

How do you make a sprite overlap another one? (Read 604 times)

Started by Data East, November 19, 2007, 08:16:14 am
Share this topic:
How do you make a sprite overlap another one?
#1  November 19, 2007, 08:16:14 am
  • avatar
  • **
There is a bridge, and most stuff I want on top of it. But there is one animation I want to go behind it, and I can't figure out how to do it. How is this done? ???
Re: How do you make a sprite overlap another one?
#2  November 19, 2007, 10:37:32 am
  • ******
  • Limited time to use Infinite power !
    • France
    • network.mugenguild.com/cybaster/
I don't know if that's what you mean : the order in which things appear in a stage is the oder in which you write them in the def file.

If you write in this order (giving layerno=0 to all of them) :

[BG 1 anim]
[BG 2 bridge]
[BG 3 blargh]
[BG 4 other blargh]
etc.

Then the anim will be displayed behind the bridge which will be displayed behind all the other stuff written after.

Only case where this doens't apply is if you give a layerno=1 to a BG part, in which case this BG part will appear IN FRONT of the characters (hence, in front of all the other BG parts too)
Re: How do you make a sprite overlap another one?
#3  November 19, 2007, 07:19:42 pm
  • avatar
  • **
Thanks Cybaster! I can't believe I coudn't figure that one out. o_O