![]() |
Matrix?
I'm making a little game based on "DDR". For those unfamiliar with it you hit buttons coodinated with shapes that rise towards the top of the screen and you try to time it right...
Is there a way i could use a matrix or some other type of thing so that if i had say, 3 shapes to pick from i could organize it this way: 1=there 0=not there 0,1,0 0,0,0 0,0,0 0,1,1 0,0,0 1,0,0 0,0,0 1,0,1 1,1,0 etc... i could use a string for each... but what would be the easiest way for the npc to interact with it and to put a shape there when needed by reading it? (also, i would want it to read 1 whole set of 3 at once) |
Re: Matrix?
Quote:
for(i=0;i<arraylen(this.array);i+=3){ this.shape1 = this.array[i]; this.shape2 = this.array[i+1]; this.shape3 = this.array[i+2]; } o_O |
Quote:
|
Quote:
|
Quote:
var[index][index] first index being the x, second being the y |
Quote:
|
c++ does it like
vartype varname [index] [index]; and if you want to go insaine with dimentions and example... int insaine [99] [99] [99] [99] [99] [99]; //6 dimentional matrix and referenced like... insaine [12] [34] [56] [78] [90] [27]; but all a matrix is is an array of arrays... but it does add a new 'dimention' of possibilities XD heh... hi im Ed... and this is my first post in the Scripting boards but anyway... it'd be easier to use an array for each column... a string would get you involved with those annoying string segment codes that mess with yer head |
:D
oo i love DDR :D
I love DDRMAX2 and I got 5 steps into MAXX UNLIMITED then I failed =( That would be leet if you made it :D |
| All times are GMT +2. The time now is 04:26 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.