Développement SNES > PVSnesLib English section

Sprites - X Y negative coordinates

(1/3) > >>

faeldaniel:
Hello Alekmaul,

When we have a new version?  :D

look this, when i am set in coordinates with 0 the sprite disappears :

--- Code: ---oamMemory[id + 0] = 0;
--- Fin du code ---

if set in coordinates (-50) for example the sprite go to position (200) .

--- Code: ---oamMemory[id + 0] = -50;
--- Fin du code ---

I would like the coordinates of the sprite corresponds to the size of the background and not 0 to 255, this is possible?

alekmaul:
Hi,
Well, you can put something negative. You must set the hide flash with oamHide that do such thing.
I updated googlecode entries with last version of pvsneslib.
Hope it will help you.

faeldaniel:
Thank alekmaul will check and test, thanks

alekmaul:
take the last version from googlecode, i chnaged some things regarding sprite management.

faeldaniel:
I get and now im testing in my engine, thanks for contribuition, loved the debug mode in NO$SNS is being very most useful :) .

I try to explain my problem, defined as negative values ​​less than zero or even exceeding the value 255 is reset in screen, for example:

--- Code: ----5 == 250
-25 == 230
325 == 70
--- Fin du code ---
I want the sprite gradually disappear from the screen as we see in most games, exactly the same as when you define 253, check that only part of the sprite is visible to another part of this out of the screen.

Basically I need the sprites with positions -25 and 280 where 0 and 255 are the parts visible on the screen.

Navigation

[0] Index des messages

[#] Page suivante

Sortir du mode mobile