#56430 - blaow - Sat Oct 08, 2005 6:46 pm
Im trying to pass a sprite from one screen to another (lower to upper) using PA_LIB by simple setting the screen attribute of the sprite to 1 (upper screen) when the transition needs to occur and then calling the PA_SetSpriteXY method. basicly as follows:
enemy.screen=1;
PA_SetSpriteXY(enemy.screen,enemy.id,enemy.x,enemy.y);
Once the transition is done the collision mechanism of the game detects the sprite in the new screen(collisions work where the sprite should be), however the sprite is still drawn on the lower screen.
Is this the way it should be done? or do i have to create a new sprite to mimic the other(one sprite in each screen that represent a single one)
thanks for any help
_________________
blaow~~
enemy.screen=1;
PA_SetSpriteXY(enemy.screen,enemy.id,enemy.x,enemy.y);
Once the transition is done the collision mechanism of the game detects the sprite in the new screen(collisions work where the sprite should be), however the sprite is still drawn on the lower screen.
Is this the way it should be done? or do i have to create a new sprite to mimic the other(one sprite in each screen that represent a single one)
thanks for any help
_________________
blaow~~