View Single Post
  #6  
Old 05-15-2005, 05:02 PM
Velox Cruentus Velox Cruentus is offline
Registered User
Velox Cruentus's Avatar
Join Date: Dec 2004
Location: Quebec, Canada
Posts: 465
Velox Cruentus is on a distinguished road
Send a message via ICQ to Velox Cruentus Send a message via AIM to Velox Cruentus
Now -- The utility can be a variety of things... First off, the arrays can now carry texts...
You can use it to create a background for easy access to the x and y coordinates, such as:

PHP Code:
  this.levelt := new[64,64];
  for (
0< (64*64); i++)
    
this.level[i%64][int(i/64)] = tiletype(i%64,int(i/64)); 
And then grab the variables by:
this.levelt[x][y]; Making it just a different way to bypass it, or store variables. This could be used to make minigames with tiles of your own set, were you create the blocking via tiles:
PHP Code:
this.var := {
 {
0,1,1,0,0,2,0},
 {
0,1,0,0,1,2,0},
 {
0,0,0,1,2,2,1}
}; 
Or... You can use it, in the case that I did in my Item System script:
PHP Code:
this.item := {{"Prop",var},{"Prop",var}}; 
It all depends on what you want to use it for.
__________________
In a world of change... Who'll you believe?
Reply With Quote