I just had my first visual basics class for high school! How I Felt:I had a headache but its worth it! Its programming but with so many numbers and codes!! I think scratch is easier though lol! But hopefully i will get better with the visual basics!
Offline
That's really cool - What kinds of things do you learn in this class?
Offline
In my high school we did the pascal language and are now doing java. I hope you have a good time learning VB
Offline
whats Visual Basics?
Offline
Well today we just did how to start a code by doing this:
CLS
CIRCLE(350,270),50,4 this made a red circle in the middle of the page
PAINT(350,270),50,4
END
Thank you archmage
Funkymonkey Visual Basic for Applications (VBA) is a subset that provides a common macro language included with many Microsoft applications.
Offline
funkeymonkey, visual basic is a different programming language which is a lot different from scratch. My dad does it and from the look of it it does calculations and buttons and not much games. Plus the code is all numbers or words.
Offline
I may take some classes at MIT at the HSSP program, for computer science for 7th-12th grade. Has anyone else heard of this?
Offline
Lucario621 wrote:
funkeymonkey, visual basic is a different programming language which is a lot different from scratch. My dad does it and from the look of it it does calculations and buttons and not much games. Plus the code is all numbers or words.
Coding in numbers & words isn't so tough.
See if you can spot the similarities to my sprite movement done right project in this actionscript code.
http://scratch.mit.edu/projects/archmage/72848
This is basically sprite movement done right coded in actionscript.
//This goes on the player sprite
onClipEvent (load) {
//When this sprite loads declare some variables
var xVelocity:Number = 0;
var yVelocity:Number = 0;
var maxSpeed:Number = 20;
}
onClipEvent (enterFrame) {
//Every time another frame goes by execute this code
if (Math.abs(xVelocity)<maxSpeed) {
if (Key.isDown(Key.RIGHT)) {
xVelocity += 2;
}
if (Key.isDown(Key.LEFT)) {
xVelocity -= 2;
}
}
if (this.hitTest(_root.ground)) {
yVelocity = -1;
if (Key.isDown(Key.UP)) {
yVelocity = -15;
}
}
xVelocity *= 0.9;
yVelocity++;
_x += xVelocity;
_y += yVelocity;
}
Offline
JSO wrote:
Why to you always declare the variable type to var xVelocity:Number = 0; instead of
var xVelocity = 0;?
Because all the cool kids use strict data typing
Learn about strict data typing @ http://www.oman3d.com/tutorials/flash/variables_bc/
Offline
JSO, strict data typing is a way to avoid errors, or at least detect them early in the debugging process.
Offline
Im just finished my VB class 2 days ago at the end we did a slot machine program with money and the code
Call Randomize
Int(Rnd*4+1)
Offline
rich516516, when you say "Int(rnd*4+1), it reminds me of a different computer language, Ever Heard of the TI(texas instruments)-99 4A?
Offline