A86: Re: slow down sprite


[Prev][Next][Index][Thread]

A86: Re: slow down sprite




Try inserting a few halt statements, or a loop, i.e.

 push bc
 ld b, 10
HaltLoop:
 halt
 djnz HaltLoop
 pop bc

That should provide enough slowdown, decrease the number when
extra speed is needed

>How would I slow down this sprite?  I have figured out most of what I need
to
>know by myself.  Thank you to all of you who have helped me before.  I just
>need to know, how would I slow down a sprite that falls down on the screen.
I
>have a little game going that a bug drops and the monster on the bottom
tries
>to eat it.  I haven't made the eating part yet, but I will as soon as I
figure
>it out.  Here is the little part that I have:
>
>Bug_Move:
> push hl
> push bc
> ld b,15
> ld a,(NUM)
> ld c,a
> ld hl,Bug
> call FastSprite
> ld a,(NUM)
> inc a
> ld (NUM),a
> call FastSprite
> pop bc
> pop hl
> jp Main_Prog
>
>NUM is the place of the Bug.  Right now, it goes down on the screen faster
>that you could ever imagine.  Please help.
>
>THANX
>Dan
>
>P.S.-If this is not enough or if you would like to know all of what I have
so
>you can help me with the eating, keeping score, etc., email me at
>brncavfan2@aol.com
>