Questions tagged [smallbasic]

Small Basic is a Microsoft product for teaching beginners to program.

Small Basic is a Microsoft product for teaching beginners to program.

78 questions
0
votes
2 answers

How to translate file int 2-D array?

I have a file array.txt that consists of numbers. I need to make a 2D array from it. How can I do that? 0 6 10 0 0 0 0 0 0 0 6 0 12 11 14 0 0 0 0 0 10 12 0 12 0 0 8 16 0 0 0 11 12 0 0 6 3 0 0 0 0 14 0 0 0 4 0 0 6 0 0 0 0 6 4 0 0 0 12 0 0 0 8 3 0 0 0…
Ma Rat
  • 1
0
votes
2 answers

Error message inside a loop - Pong game

I am making a game similar to pong in small basic. What I want to do is when the ball hits the wall the game ends and shows an error message. What I did was use a while loop as such below: While (hits right wall) or (hits left wall) or (hits top…
dstar19
  • 25
  • 1
  • 5
0
votes
2 answers

How to stack animations in Small Basic

I have been trying to simulate jumping in Small Basic, which I had originally though to be simple but is trickier than I expected. Whenever I try to use animations (or move) in a for loop the program always seems to put whatever delay I have…
zeldor711
  • 1
  • 1
0
votes
1 answer

Microsoft Small Basic Program

haiku generator. A program that pulls randomly from an array of one and two syllable and put them into a new haiku poem following the syllable from 5-7-5 Using Microsoft Small Basic.
0
votes
1 answer

creating quick images on smallbasic

im trying to create a noise image on small basic, however, i cant get the image to load fast enough to look realistic. i tried using ldarray but it still isnt fast enough. here is the current code im using: GraphicsWindow.Left = 0 'positions…
MSG2
  • 9
  • 2
0
votes
2 answers

How can I get text to NOT overlap in Small Basic?

I need to have a graphics window that displays a message over and over again as a user clicks a button. I have looked all over the internet for instructions on how to not make it overlap. This is most likely a quick fix but idk. Plz help here is my…
0
votes
1 answer

Small Basic - When would 'Graduate' be used?

So today I decided to take a look at the Graduate feature in small basic, I discovered that it allows you to convert your small basic code to a format for Visual Studio, Great I thought. Until when I later tried it, Visual Studio reported that there…
EpicMinecartz
  • 39
  • 2
  • 5
0
votes
1 answer

Small Basic - More "natural" terrain generation for simple Minecraft clone I've found online

This is the main focus of the question: For BlockX = 0 To 900 Step 30 'Try to carve out Hills GraphicsWindow.BrushColor = "SkyBlue" depth = Math.GetRandomNumber(5) GraphicsWindow.FillRectangle(BlockX,BlockY,30,depth*30) EndFor And the whole…
Auxhil
  • 21
  • 3
0
votes
3 answers

Random Numbers in array, Small Basic

I'm trying to generate an array which would have ten variables, each containing a random number from 1 to 10. The random integer can not be in the array more than once. Each time the program would execute, the array would be reset with different…
0
votes
3 answers

Small Basic How do I get my players square to "die" even if my enemies square can't be matched up exactly to it?

Here's the code: 'Player and Enemy Variables PlayerX = 0 PlayerY = 339 EnemyX = Math.GetRandomNumber(590) EnemyY = 339 'Just setting up GraphicsWindow.Show() GraphicsWindow.Width = "600" GraphicsWindow.Height = "400" GraphicsWindow.KeyDown =…
Auxhil
  • 21
  • 3
0
votes
2 answers

Small Basic Quiz, Going in reverse order

I am creating a Small Basic Quiz for school and i have used GraphicsWindow so i create buttons. My was working fine until i add other questions, because then it started to display them in reverse order. Here's my Code: GraphicsWindow.BackgroundColor…
Xtonic
  • 1
  • 2
0
votes
2 answers

small basic reset shape position after it got out of the screen

please help!!!! i'm having a little problem with small basic i wanted to make a little game where a ufo has to avoid asteroids, and i made an asteroid and animated it, and then i wanted to make its y position go back to 0 wen it passed the…
user5208539
0
votes
2 answers

Small Basic: How can I split words in an external text file into a list?

I'm trying to bring in a simple list of 10 words (without commas) on 10 lines and save them as a list or array in Small Basic. I know I need to loop through all the lines in the file but I can only get it to do it with individual letters. I've got…
0
votes
1 answer

Small Basic - GetPixel() always returns #000000 with Turtle

I have yet to see this question be asked or answerd anywhere, so I thought I should try here. Not being that familier with Small Basic's language logic, i'm trying to just create my own little programs to learn the language better. However, recently…
EpicMinecartz
  • 39
  • 2
  • 5
0
votes
1 answer

Moving a shape across the screen and making it disappear

this program that i have so far works but it freezes when it gets to the for loop. i have done something like this with another program but with shapes it doesnt like it. GraphicsWindow.Height = 400 GraphicsWindow.Width = 600 GraphicsWindow.Title =…
Matthew
  • 157
  • 1
  • 9