This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2008-01-22 15:07:34

Lanie624
Scratcher
Registered: 2007-07-13
Posts: 500+

Visual Basics

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!


smile

Offline

 

#2 2008-01-22 16:02:56

MITscratcher
Scratcher
Registered: 2007-09-16
Posts: 100+

Re: Visual Basics

That's really cool - What kinds of things do you learn in this class?


http://scratch.mit.edu/projects/MITscratcher/235497
                    ^ My NEW Snake Game! ^

Offline

 

#3 2008-01-22 16:43:38

archmage
Scratcher
Registered: 2007-05-18
Posts: 1000+

Re: Visual Basics

In my high school we did the pascal language and are now doing java. I hope you have a good time learning VB  smile


Hi, I am Archmage coder extraordinaire. I do Scratch,pascal,java,php,html, AS2 and AS3. Leave me a message if you want coding advice. Also check out my personal website, lots of good stuff about web development, Flash, and Scratch (v1 and v2) !

Offline

 

#4 2008-01-22 16:59:25

funkymonkey
Scratcher
Registered: 2007-06-03
Posts: 1000+

Re: Visual Basics

whats Visual Basics?


http://i243.photobucket.com/albums/ff67/hprules_photos/banner2.jpg
Kuzimu: Dawn of a New Age                                                                                                  Coming May 2010

Offline

 

#5 2008-01-22 17:48:52

Lanie624
Scratcher
Registered: 2007-07-13
Posts: 500+

Re: Visual Basics

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  smile   

Funkymonkey Visual Basic for Applications (VBA) is a subset that provides a common macro language included with many Microsoft applications.


smile

Offline

 

#6 2008-01-22 20:58:11

Lucario621
Community Moderator
Registered: 2007-10-03
Posts: 1000+

Re: Visual Basics

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.


http://i.imgur.com/WBkM2QQ.png

Offline

 

#7 2008-01-22 21:24:36

MITscratcher
Scratcher
Registered: 2007-09-16
Posts: 100+

Re: Visual Basics

I may take some classes at MIT at the HSSP program, for computer science for 7th-12th grade. Has anyone else heard of this?


http://scratch.mit.edu/projects/MITscratcher/235497
                    ^ My NEW Snake Game! ^

Offline

 

#8 2008-01-22 21:52:29

archmage
Scratcher
Registered: 2007-05-18
Posts: 1000+

Re: Visual Basics

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;
}


Hi, I am Archmage coder extraordinaire. I do Scratch,pascal,java,php,html, AS2 and AS3. Leave me a message if you want coding advice. Also check out my personal website, lots of good stuff about web development, Flash, and Scratch (v1 and v2) !

Offline

 

#9 2008-01-23 06:46:31

JSO
Community Moderator
Registered: 2007-06-23
Posts: 1000+

Re: Visual Basics

Why to you always declare the variable type to     var xVelocity:Number = 0; instead of
    var xVelocity = 0;?


http://oi48.tinypic.com/2v1q0e9.jpg

Offline

 

#10 2008-01-23 07:00:20

Lanie624
Scratcher
Registered: 2007-07-13
Posts: 500+

Re: Visual Basics

well today im having my second class! lol  smile  hopefully i get better!


smile

Offline

 

#11 2008-01-23 09:39:57

archmage
Scratcher
Registered: 2007-05-18
Posts: 1000+

Re: Visual Basics

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  smile

Learn about strict data typing @ http://www.oman3d.com/tutorials/flash/variables_bc/


Hi, I am Archmage coder extraordinaire. I do Scratch,pascal,java,php,html, AS2 and AS3. Leave me a message if you want coding advice. Also check out my personal website, lots of good stuff about web development, Flash, and Scratch (v1 and v2) !

Offline

 

#12 2008-01-23 10:15:02

JSO
Community Moderator
Registered: 2007-06-23
Posts: 1000+

Re: Visual Basics

Allright - but I'm not going to add this to all my old flash games, just to avoid errors  big_smile  !

Last edited by JSO (2008-01-23 15:36:46)


http://oi48.tinypic.com/2v1q0e9.jpg

Offline

 

#13 2008-01-23 15:06:29

kevin_karplus
Scratcher
Registered: 2007-04-27
Posts: 1000+

Re: Visual Basics

JSO, strict data typing is a way to avoid errors, or at least detect them early in the debugging process.

Offline

 

#14 2008-01-23 15:36:25

JSO
Community Moderator
Registered: 2007-06-23
Posts: 1000+

Re: Visual Basics

I will use it in my next flashgames, but there is no reason to use it in my working (and finished) games, or...?


http://oi48.tinypic.com/2v1q0e9.jpg

Offline

 

#15 2008-01-23 17:31:14

Lucario621
Community Moderator
Registered: 2007-10-03
Posts: 1000+

Re: Visual Basics

Archmage, that actually is very different.  sad


http://i.imgur.com/WBkM2QQ.png

Offline

 

#16 2008-01-27 12:35:05

rich516516
Scratcher
Registered: 2007-12-31
Posts: 2

Re: Visual Basics

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)


-------------------------------------------------------------------------
Making games for people who play em and like em and build em
Doomtal 1:http://scratch.mit.edu/projects/rich516516/75343
Doomtal 2: Coming Soon

Offline

 

#17 2008-01-29 15:27:13

Lucario621
Community Moderator
Registered: 2007-10-03
Posts: 1000+

Re: Visual Basics

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?


http://i.imgur.com/WBkM2QQ.png

Offline

 

#18 2008-01-29 16:00:16

Jman720
Scratcher
Registered: 2007-11-27
Posts: 1000+

Re: Visual Basics

The First Game I made used Flash and Applescript, and to script and code you had to type everthing for games.


Solve for x
2+3+2+(-9)+1x+2x=7

Offline

 

#19 2008-01-29 16:42:00

Lanie624
Scratcher
Registered: 2007-07-13
Posts: 500+

Re: Visual Basics

Well my first project id due friday! we have to make the Tin Man!


smile

Offline

 

#20 2008-01-29 16:51:20

Jman720
Scratcher
Registered: 2007-11-27
Posts: 1000+

Re: Visual Basics

Good Luck!


Solve for x
2+3+2+(-9)+1x+2x=7

Offline

 

#21 2008-01-29 16:54:43

Lanie624
Scratcher
Registered: 2007-07-13
Posts: 500+

Re: Visual Basics

lol thanks! so far its okay i made the body, head, legs, arms, and i need to make a background and add more detail! My teacher says to everyone dont say ur finished because the people who say that barley get passed an F


smile

Offline

 

#22 2008-01-29 16:58:21

Jman720
Scratcher
Registered: 2007-11-27
Posts: 1000+

Re: Visual Basics

lol, my dad does stuff Kinda like that, he's a High School Multimedia/Using The Internet/Drama/More Teacher! lol


Solve for x
2+3+2+(-9)+1x+2x=7

Offline

 

#23 2008-01-29 17:11:57

Lanie624
Scratcher
Registered: 2007-07-13
Posts: 500+

Re: Visual Basics

lol cool my dad is a Reliability Engineer for the Company Bristol Myer Squib a really high up charts company!


smile

Offline

 

#24 2008-01-29 17:12:44

Jman720
Scratcher
Registered: 2007-11-27
Posts: 1000+

Re: Visual Basics

Nice.


Solve for x
2+3+2+(-9)+1x+2x=7

Offline

 

#25 2008-01-29 17:14:23

Lanie624
Scratcher
Registered: 2007-07-13
Posts: 500+

Re: Visual Basics

lol i know but he hates driving to the company its an hour away from home so he takes 2 hour drives everyday!


smile

Offline

 

Board footer