Jump to content
IGNORED

Layers Priority


abaudrand

Recommended Posts

I'm still working on my game Dragons' night (title seems already taken for a video game so I will change it later) and I'm looking for a way to hide the player0 sprite behind a square but keep it in front of the playfield.

I've unfortunately found that in order of priority, the sprites of Player0 and Player 1 are always atop missiles and the ball. You can only set the PF upon everything with the CTRLPF function.

 

 

1. SPRITES

2. MISSILES AND BALL

3. PF

 

OR (with changing CTRLPF)

 

1. PF

2. SPRITES

3. MISSILES AND BALL

 

Anyone got an idea to have:

 

1. MISSILES AND/OR BALL

2. SPRITES

3. PF

Link to comment
Share on other sites

I'm still working on my game Dragons' night (title seems already taken for a video game so I will change it later) and I'm looking for a way to hide the player0 sprite behind a square but keep it in front of the playfield.

I've unfortunately found that in order of priority, the sprites of Player0 and Player 1 are always atop missiles and the ball. You can only set the PF upon everything with the CTRLPF function.

 

 

1. SPRITES

2. MISSILES AND BALL

3. PF

 

OR (with changing CTRLPF)

 

1. PF

2. SPRITES

3. MISSILES AND BALL

 

Anyone got an idea to have:

 

1. MISSILES AND/OR BALL

2. SPRITES

3. PF

 

The player1 sprite appears "behind" missile0 on either priority - I don't know if that will help?

Link to comment
Share on other sites

The player1 sprite appears "behind" missile0 on either priority - I don't know if that will help?

The only other thing I can think of would be to change the player's graphics to make it *look* like it's going behind a block. Or, if you write your own kernel, you could change the graphics priority from line to line, so you could have the players go behind the playfield on some lines, yet have them be in front of the playfield on other lines.

 

Michael

Link to comment
Share on other sites

 

The player1 sprite appears "behind" missile0 on either priority - I don't know if that will help?

 

I didn't tried that as my sprite for player0 and player 1 are already defined in the game.

so to sum up, the chart will be something like:

 

1. Player0 and Missile0

2. Player1 and Missile1

3. Ball and PF

 

If its the case, maybe a rewriting of my game (inverting P0 and P1) will help me.

Thanks for your reply IT HELPS ME A LOT :D

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...