| |
|
|
| Hello!
I program one Adevnture in the it possible his should, sowohl behind as well as to one subject To walk. For this is it necessary The Layer To swap once one the level (Y) the Gegenstandes over- or unterschreitet. long speech kurzer sense, the Swappen bring everything to that stand obwohk it a 0 (=ok) zurückgibt. here one simples example, the of course none makes sense but nevertheless functions ought to:
player&=InitSprite(spriteplane&,%HDC,bg1&,bg2&,0,0,32,32,4,1,20,50,270,1,1)
gegenstand&=InitSprite(tischbmp&,%HDC,bg1&,bg2&,0,0,254,73,1,1,0,94,235,0,0)
SwapSpriteLayers(player&,gegenstand&)
If the Layer vertauscht get is not More possible whom player Sprite To moving. has someone a Idea I wrong make?
Sincerely, Sven |
|
|
| |
|
|
|
| Hello Sven,
with my ausgiebigen Tests klappte everything to content. Perhaps can you me whom betreffenden Source to that testing send? will be SwapSpriteLayers() today evening otherwise over again testing.
Sincerely, Frank |
|
|
| |
|
|
|
| Hello over again,
SwapSpriteLayers() works integrally normal, though must the first Sprite to not uses go. the first generierte Sprite position a conscience Sonderstatus dar, because it the Endesprite is in the row all verketteten Sprites. tricky ? OK, my Tipp: at that using of SwapSpriteLayers() simply one small unsichtbares Sprite first thing Generate, then Gibts no Problems More.
Sincerely, Frank |
|
|
| |
|
|
|
| Hi,
it was still one ziemlicher Bug in the function... 8-(( in the next ProSpeed-Version is the Error but fixed.
Greeting, Frank |
|
|
| |
|
|