@shadowblind. Some of your colours haven't been created (eg green)
and to answer your question yaustar: no, he doesnt.
Miniviews:
Spoiler!
@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?
Miniviews:
Spoiler!
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.
thats why i called u the wise one
ohhhhhhhhh thx man
Miniviews:
Spoiler!
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]
Miniviews:
Spoiler!
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
screenrint(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
tables and functions make things a lil easyer^^
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks