A matrix of Random Numbers, how ?

Get help using Construct 2

Post » Thu Jul 26, 2012 10:02 am

hi all,

I am here after a long time.
here 's a link of the game which I made a month back.
Hope you enjoy it.Lot to improve here.

collegetomato.com/devign/v6

I am working on mathematical games these days:

Here is what I want to do..please have a look.I think the image is self explanatory:



and



Thanks
B
6
Posts: 30
Reputation: 585

Post » Thu Jul 26, 2012 4:04 pm

set the size of the array to however big you want then loop thru all the elements in the array and generate a random number and put it in that element.

Pretty simple just remember you need to set the size of the array first or it wont work. Look at the manual entry for arrays for the functions to use
B
13
S
5
G
2
Posts: 306
Reputation: 3,262

Post » Thu Jul 26, 2012 4:12 pm

I remember a Thread somewhere that someone had made plenty of matrix examples.
B
27
S
11
G
1
Posts: 246
Reputation: 5,048

Post » Thu Jul 26, 2012 4:19 pm

You can find a lot of examples about arrays in the how do I FAQ in the section "Arrays".
New to Construct ? Where to start

Image Image
Image Image

Please attach a capx to any help request or bug report !
Moderator
B
247
S
85
G
40
Posts: 6,999
Reputation: 57,793


Return to How do I....?

Who is online

Users browsing this forum: R0J0hound, randomly, spcsmrf and 23 guests