Computer Science Canada Shifting array spectrum |
Author: | ExquisitePotato [ Thu Jun 14, 2012 5:46 pm ] | ||
Post subject: | Shifting array spectrum | ||
What is it you are trying to achieve? I'm trying to get the past value of a variable without re-assigning the variable to another one, so for example, like a snake game, where the last circle in the array get's deleted, but it's replaced with a new one. Essentially, I'm trying to make a line of circles follow the mouse. How can I do this? Please help, thanks ![]() What is the problem you are having? I don't know how to access the past value of the variable efficiently. Describe what you have tried to solve this problem I found a small loophole, but it only works in one direction, where I just place a put statement so that the circles created get shifted over... how do i avoid this, and make it follow the mouse? Post any relevant code (You may choose to attach the file instead of posting the code if it is too long)
Please specify what version of Turing you are using 4.1 |
Author: | copthesaint [ Sun Jun 17, 2012 9:38 am ] | ||
Post subject: | Re: Shifting array spectrum | ||
Normally you wont get this much help, but I think you'll still have alot to do if you try implement this into your own program idea, you will definatly understand flexible arrays by the end if you do it correctly.
|