Re: A92: sprite-moving problem...


[Prev][Index][Thread]

Re: A92: sprite-moving problem...




Well, your problem could be :

you forgot the sprite precedence, the sprime 'above'must be removed
befor the sprite below can be removed

or you are not saving-restoring correctly the box under the sprite.
save (x1, y1, x2, y2)
put the sprite on x1,y1
restore(x1,y1,x2,y2)

now again recalculate x1,..y2
save ...
put spr...
restore..

but don't forget the sprites are weighed.

i hope this can help you


Marko Ristin wrote:

> Hello !
> I got a big problem about gamemaking... I want to make
> a sprite, that'll move on the screen (I'm making
> jump&run game), but I just can't make transparency.
> Sprite leaves always trail or screen blinks (when I
> use clearscreen method). I tryed with OR, AND and XOR
> logic for putting pixels, but it hasn't worked... I'm
> making only model in pascal and then I'll translate it
> in assembler. It'll use grayscale.
> Thanks for answers !
> Bye
>
> =====
> Viele Grussen,
> Puno pozdrava,
>
> Marko Ristin
>
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Auctions - Buy the things you want at great prices.
> http://auctions.yahoo.com/




References: