Sprites
Author |
Message |
KeyBladeMaster
|
Posted: Fri Nov 30, 2007 6:13 pm Post subject: Sprites |
|
|
Alright, I am making a game for my computer class.
I have the enemy following me but when he has to go the other way the one way stops and stays there, then the other sprite of him walking the other way appears while the other is still on screen....
how can i fix this??
here is the code
if x<xH then
%move left
xH:= xH-2
Sprite.Animate (spriteH2, Heart2P ((xH div 8) mod Heart2 + 1), xH, yH, false)
delay(50)
end if
if x>xH then
%move right
xH:= xH+2
Sprite.Animate (spriteH, Heart1P ((xH div 8) mod Heart1 + 1), xH, yH, false)
delay(50)
end if |
|
|
|
|
|
Sponsor Sponsor
|
|
|
theiinsilence
|
Posted: Fri Nov 30, 2007 10:20 pm Post subject: Re: Sprites |
|
|
ill admit that i dont know much about sprites, as i myself am learning them too but based on the site, sprites dont work, if you go to the bottom
http://compsci.ca/v3/viewtopic.php?t=4598 |
|
|
|
|
|
|
|