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.

Newcomers DBPro Corner / Randomizing

Author
Message
Rennekon
20
Years of Service
User Offline
Joined: 7th Oct 2003
Location:
Posted: 7th Jan 2004 05:08
Working on my breakout game and I want to have a random block that randomly changes point values and with it the color. Any help?

John "Dark Lord of Angel Destroying Destiny" Pringlebee, maybe?
indi
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: Earth, Brisbane, Australia
Posted: 7th Jan 2004 06:16
randomize timer() : rem this will make a better random seed than just using random

ink rgb(rnd(255),rnd(255),rnd(255)),1 : rem this will make a random colour from 0 - 255 in the rgb values

box 0,0,32,32 : rem this prints the last colour chosen in the above random ink statement

Login to post a reply

Server time is: 2024-09-21 15:54:45
Your offset time is: 2024-09-21 15:54:45