hey, im a real
n00b at DBPro right now, i downloaded the demo today (ordered it already, takes time tho
) and, i am doing some nice (really simple) Math Hacks.
just some programs that help you for math homework easily.
and, here is my first Q....
it asks u for the height, length and width, and it gives u the volume. But, i also want it to show a 3D model of it (spinning around slowly) by pressing G. How would i change the scale of the cube/model to fit wat the user changed it to?
here is the code so far
print "Welcome to Math Hacks: 3D AREA!"
print
print "A little 3D program made by Gregor Czaykowski 2003"
print
print "-----------------------------------------------"
print
INPUT "Enter LENGTH of rectangle: ",X
INPUT "Enter HEIGHT of rectangle: ",Y
INPUT " Enter WIDTH of rectangle: ",Z
print
V = X*Y*Z
print "The VOLUME of your rectangle is: ",V
print
INPUT "Press G to view the 3D MODEL: ", GO
if GO == G
MAKE OBJECT CUBE 1,100
DO
YROTATE OBJECT 1,OBJECT ANGLE Y(1)+0.1
SCALE OBJECT 1, X, Y, Z
oh and... a few simple Qs:
how would i make them press a key, to make em start the program again?
and, how would i make a button, if they dont want to restart the program, but exit?
thanks in advanced!
-------------------------
I'm new to DarkBasic Pro, so don't flame me :/