Computer Science Canada Help with snake game and corrections |
Author: | vagyb [ Fri Apr 30, 2004 9:24 am ] | ||
Post subject: | Help with snake game and corrections | ||
hey i just started using turing and i'm making a very sad attempt at making a snake game. i started making it today and i got to the part of controlling the snake (moving it around). I would ask someone to be kind enough to help me plz make the controls more normal. Rite now you have to press up/down/left/rite arrow keys to move the snake, but i'd like someone to tell me how to make it go up automatically, and when i press left it goes left automatically. any suggestions are welcome (lol i need to fix up the snake too)
|
Author: | Delos [ Fri Apr 30, 2004 9:27 am ] |
Post subject: | |
Wrong forum. Nicely ask a mod to move this to the [Help] section. Thank you. |
Author: | Tony [ Fri Apr 30, 2004 10:16 am ] |
Post subject: | |
what you do is you have a memory variable to keep track of the last input and if there're no keys pressed then you move in the direction of the memory variable |
Author: | vagyb [ Fri Apr 30, 2004 10:57 am ] |
Post subject: | |
oh sorry, can u move it to that section plz. also this is the first time im using turing so i didn't understand most of the things u said tony. so could u plz try to explain in more simpler words or give like an example of the code or a code? thx |
Author: | vagyb [ Fri Apr 30, 2004 11:55 am ] | ||
Post subject: | |||
okay i finally figured out how to use whatdotcolor ![]() (and again this is my first program i made, i just started learning turing a week or less ago so try using simple words lol :S)
|
Author: | Tony [ Fri Apr 30, 2004 3:47 pm ] |
Post subject: | |
dont use delays like that don't use whatdotcolor take a look at zylum's snake |
Author: | vagyb [ Sat May 01, 2004 3:53 am ] |
Post subject: | |
oh i c :S lol aight thx for advice |