by CrashingThunder » Sun Mar 07, 2010 4:19 am
I'm fairly new to this program and this forum, but I have some experience with coding in general so I decided I'd start by learning the basics and decided to do some stuff with random numbers...HENCE, I decided to create "The Matrix" xD
- Code: Select all
Set Text Color for All 0;0;31;0 //makes the text green
Declare Room Global t;Whole Number;0 //sets our number to be displayed
Set Variable t;PA_RandMinMax(0,1) //sets t to a random number between 0 and 1
Draw Variable 0;PA_RandMinMax(0,31);PA_RandMinMax(0,23);t //draws t to a random x tile(0-31) and y tile(0-23)
And thats it! This will result in green 0s and 1s being drawn and random coordinates! Here's the file if you're extremely lazy and want to see it in action first...
- Attachments
-
Matrix.nds
- The Matrix .nds file
- (336.56 KiB) Downloaded 32 times
-
matrix.xds
- The Matrix .xds file
- (506 Bytes) Downloaded 18 times
Last edited by
CrashingThunder on Sun Mar 07, 2010 7:16 am, edited 1 time in total.
The early bird may get the worm, but the second mouse gets the cheese in the trap