and to answer your question yaustar: no, he doesnt.
Printable View
and to answer your question yaustar: no, he doesnt.
@shadowblind. Some of your colours haven't been created (eg green)
green, huh? Thats the clor the tut told me to put... So how is that fixable?
no he means u didn't create a variable for the color green, is that right oh wise one(yaustar)?
Put it this way, you have created the colour blue like:
blue = Color.new(0, 255, 0)
But green, red, yellow etc haven't. Have a guess how it is fixable.
@Blaze: actually the variable has been created (where it is used) but not given a value hence it is crashing.
:D thats why i called u the wise one
ohhhhhhhhh thx man
ok: Tables. I dont understand they're exact definition and what they do, and where to implement them.
myTable[1]
myTable[2]
myTable[3]
myTable[4]
myTable[5]
hey yaustar is there a specific way to code the script, and are there techniques were can take to avoid annoying things in the end, like short cuts to make things a bit more easy on us?
tables is a place to hold infor mation i suugesst yousing as mouch of these as you can like if youd want to hold your charcters informatioon in a table it would be like
player{}
player.x=60
player.y=200
player.health=100
then you could call from that in your script such as to print your health you would do something like
screen:print(100,100,player.health)
or when you have to blit your charcter your charcters x and y wont be just variables like
screen:blit(player.x,player.y,playerimage)
you can youse that for anything and it saves you time hope that helps:cool:
tables and functions make things a lil easyer^^