#39064 - ghost Leinad - Mon Apr 04, 2005 2:41 am
hi..im a young proggramer trying to make games...im from Mexico, i just started a week ago, i?m new at this and im makin' a frogger clon(very bizarre)... but i can't check for just one press...mi frog jumps down 20 pixels everytime and im one press jumps five or more times...how can i check the single press?
i heard something about button states but i can't change my button state and then return to the original without using another key...example...my frog jumps with the KEY_DOWN and my buttonstate become =1 to retunr the buttonstate to 0 i need to press the KEY_A...
ah another thing...how can i slow mi snake...(im also making(or trying to make) a snake clon) but this the problem...my snake sprite is a 8*8 and for example if I press the KEY_DOWN the snake goes down 1 pixel at time but i want to make the snake to move 8 pixels at time but when i do this my snake becomes very fast...how can i slow things down?
by the way..sorry about my english..im just learning... i hope you can first undertand me and then help me
thanks!
i heard something about button states but i can't change my button state and then return to the original without using another key...example...my frog jumps with the KEY_DOWN and my buttonstate become =1 to retunr the buttonstate to 0 i need to press the KEY_A...
ah another thing...how can i slow mi snake...(im also making(or trying to make) a snake clon) but this the problem...my snake sprite is a 8*8 and for example if I press the KEY_DOWN the snake goes down 1 pixel at time but i want to make the snake to move 8 pixels at time but when i do this my snake becomes very fast...how can i slow things down?
by the way..sorry about my english..im just learning... i hope you can first undertand me and then help me
thanks!