Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Code Snippets / [DBP]Falling Text Like Matrix Movies w/Better Speed!

Author
Message
Angry kreyon
18
Years of Service
User Offline
Joined: 19th Aug 2005
Location:
Posted: 28th Aug 2007 16:53
I was looking for a program that I could use to teach my daughter how we use math in programming (hoping to spark some interest!) and I thought that a Falling text code would be nice, so I looked for falling text threads and found only one here:http://forum.thegamecreators.com/?m=forum_view&t=55283&b=6 but the first example would not work for me no matter what I did and the second while it worked was very sloooow! so I took the example and went into my cave and came out a little later with this code. it's not screaming fast but it's better than it was and I have a few ideas on how to make it faster, which I will try later down the road. for now this is what I got and if you have ideas to make it better or faster please let me know!



on my machine while testing I had the project settings setup the screen as a 600x800 window and it seems to work pretty good, I have tried full screen as well and it just looks so big! the speed increase is due to a couple things, the fact that I am placing 6 lines at a time and also adding a second for/next statement (don't know why it started to go faster but it did! just try and take out the "for c =" and it's "next c" and see how much slower it really goes, I was suprised!)

anyway as it cycles through the loops, it flips and mirrors the bitmap it draws to, which gives an interesting effect.

attached is a screenie and I will probably work on this mre this week to try and get it faster and more robust!

Thanks to SVEN B for the initial code I used to start this with!

Attachments

Login to view attachments

Login to post a reply

Server time is: 2024-03-29 07:34:49
Your offset time is: 2024-03-29 07:34:49