|
Post by ccefal on May 15, 2006 17:15:01 GMT
i need help making the matrix's play on QB like on the movie i tried the first code you gave me but it it not the same, and how do i make it keep playing like in the movie.
|
|
|
Post by earlofqb on May 15, 2006 23:18:01 GMT
First, find the code that determines where the matrix stuff stops on the screen and reverses direction. Create something to the effect of "when it gets to the bottom, clear the object and add a new object starting at the top of the screen". Then just make an INKEY$ function for the loop (ie "if inkey$ = 27 then exit do"), that way it'll repeat until the user presses the escape key (I think 27 is Esc).
Now, as far as the graphics, that's simple. Play around with the data statements until you get the sort of characters you like (remember, QB can only do ASCII, so no fancy characters like ├ or Ç). To get the colours to match, find the COLOR function in the program and set the text to green (I don't know what number that is, you'll have to find that yourself).
|
|
|
Post by Mikrondel on May 16, 2006 1:20:37 GMT
Earl, please see this: qbasic.proboards6.com/index.cgi?board=questions&action=display&n=1&thread=417I'd prefer it if you gave a lecture when someone does something annoying rather than trying to help them. As to your post: 1) ccefal is nowhere near up to that level. 2) What the heck are you on about with characters? '├' and 'Ç' are very much part of ASCII-extended and are very much in the QB help files. Look up CHR$() and ASC().
|
|
|
Post by zaptara on Nov 8, 2008 11:27:52 GMT
so if i wanted the code on www.autopack.com/aleks/host/MATRIX.BAS to keep going down the page rather then get to the bottom and come back up how would i do it? i'd also like to speed it up so how do i do that? put simpley im not to advanced with q basic
|
|
|
Post by Mikrondel on Nov 9, 2008 7:33:14 GMT
Unfortunately that program is quite advanced and making such changes is difficult. Even for me, having written the thing in the first place.
To do that you really need to understand how the program works. While I encourage you to learn more about QB, I think this program is not a good place to start. If you want you can try to make a very simple (not very pretty) Matrix effect on your own. Let me start you off:
FOR I = 1 TO 20 'Draw X LOCATE I, 30 PRINT "X"; 'Wait for 0.3 seconds WaitUntil = TIMER + 0.3 DO LOOP WHILE TIMER < WaitUntil 'Erase X LOCATE I, 30 PRINT " "; NEXT
A great way to learn is to attempt lots of things and have fun. Challenge yourself, but if something is far too difficult, move on to something else for a while.
|
|
|
Post by ododomi on Jun 24, 2019 2:21:43 GMT
|
|
|
Post by ikihetninojo on Jun 24, 2019 4:24:31 GMT
|
|