Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Sprites
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
KeyBladeMaster




PostPosted: 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
Sponsor
sponsor
theiinsilence




PostPosted: 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
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 2 Posts ]
Jump to:   


Style:  
Search: