I have resently posted a project with very basic movment, up down left and right. the only diffrence is that in this project you can select which key you use to move with with a simple button. it has a easy interface to follow, simply press the up or down or left or right button andthe key you want to move with and it will work!
I posted this in the advance fourm because i doubt this has been done before. Please go ahead and download it and import it into your projects! http://scratch.mit.edu/projects/yambanshee/339158
Offline
Wow that is a long script. Its not really worth putting into a normal project.
It would be good if you could put a variable into the pressing key block. So all you have to do to change keys is change a variable value. That is how people do it in flash. Being able to change keys in your projects is nice but its not work the effort or the processing power for all the needed if statements.
Offline
yea, its over 300 if statments, i think the file size is something like 250kb of pur scripting! this would only really be usefull in small games, but i have proven that scratch can take a load of scripts with lunar com, hitting way overthe 500 script count!
Last edited by yambanshee (2008-12-03 10:18:51)
Offline
yambanshee wrote:
yea, its over 30 if statments, i think the file size is something like 250kb of pur scripting! this would only really be usefull in small games, but i have proven that scratch can take a load of scripts with lunar com, hitting way overthe 500 script count!
I think it proves how inflexible the language is.
I could probally script the same thing in flash with less than 20 lines of code which is less than 10% of your script.
I think that your project is nice, but not good for use in most projects.
Offline