App Lab (Code.org) 🚀 Space Shooter Game 🚀 Tutorial

Поділитися
Вставка
  • Опубліковано 5 лют 2025
  • This Code.org AppLab tutorial walks you through designing and customizing a space shooter type game.
    🖥️ Virtual Reality Programming With Alice 3: bit.ly/Alice3VR 🖥️
    🔥 Subscribe To Get More Tutorials: bit.ly/36H70sy 🔥
    🖥️ App Lab Tutorials: bit.ly/AppLabTu... 🖥️
    💡 Create Task Resources Playlist: • Create Task Resources ... 💡
    #AppLab #CodeOrg #APCSP

КОМЕНТАРІ • 311

  • @BillBarnum
    @BillBarnum  5 років тому +6

    Be sure to also check out "App Lab (Code.org) 🕹️ Arcade Game 🕹️ Tutorial" at: ua-cam.com/video/S8hhYYk-Hjc/v-deo.html
    🖥️ Virtual Reality Programming With Alice 3: bit.ly/Alice3VR 🖥️
    📌 Subscribe For The Latest Videos: bit.ly/36H70sy 📌
    💡 Create Task Resources Playlist: ua-cam.com/play/PLmpmyPywZ4410pWgQ9aLDPCNUrEcVPA-V.html 💡
    If using this for a school project, make sure to speak to your instructor about how to properly cite your code.

    • @aaronmarie555
      @aaronmarie555 5 років тому

      Hey, May you please post the link to the game art by Morgan 3D? I really want to use the same exact art, but I cannot find it.

    • @BillBarnum
      @BillBarnum  5 років тому

      @@aaronmarie555 opengameart.org/users/morgan3d

    • @liampeach7692
      @liampeach7692 4 роки тому

      for some reason when I press start it spawns the enemies way bigger than before. plz help.

  • @AlexHaglund618
    @AlexHaglund618 2 роки тому +3

    How would you go about selecting art to give your ship a more sinister or heroic look? Are there effects you could add to change how the models blend into the background?

    • @BillBarnum
      @BillBarnum  2 роки тому

      The visual effects available in App Lab aren't terribly sophisticated.
      You can look for stock art that might better fit your preferred style.
      I like www.gamedevmarket.net Some of their stuff is free and some is paid.

    • @AlexHaglund618
      @AlexHaglund618 2 роки тому

      @@BillBarnum in the video, it looked like you could use any sort of graphic object as long as it was some enough for the program to handle. So could you just make or modify your own graphic elements for use?

  • @UsTube.
    @UsTube. Рік тому +1

    Hi Bill, at 11:59 I tried to move the ship with arrow keys but it stayed still. Hope you can help:)

  • @lacafn8852
    @lacafn8852 4 роки тому +7

    Hey Bill i know you are probably busy but is there a way you could help me out? Ive got a school final Exam and your work has really helped me allot but im having allot of issues and i dont know exactly where, is there a way you could help me?

  • @greaseball9216
    @greaseball9216 2 роки тому +2

    could you possibly link the full script of code somewhere on this video page

  • @ubaiahamed7298
    @ubaiahamed7298 4 роки тому +2

    Its auspicious , unbelievable and quite helpful .This code is really working but there should be more explaination on each command why this command is used so that young coders could understand each and every step very well. keep it up!!!!!!!!!!

    • @BillBarnum
      @BillBarnum  4 роки тому +1

      Thanks for the feedback.

  • @mukunthp8523
    @mukunthp8523 4 роки тому +6

    mahn very good coding
    could u pls send the link for the code pls it would be really helpful

  • @animefandomhikari3085
    @animefandomhikari3085 3 роки тому +1

    my ship moves only once liike I press start then I pres up/down key it movesw then if I have to move it again I have to press start again, like before every movement I have to click start

  • @chelseagaray
    @chelseagaray 2 роки тому +1

    help every time i try to move my fire ball it wont move i got the code correct this is what i seeERROR: Line: 81: Oops, we can’t figure out what movefireBall is - perhaps you meant the string “movefireBall” with quotes? If this is meant to be a variable, make sure you declared a variable: var movefireBall

    • @BillBarnum
      @BillBarnum  2 роки тому

      Can you share the exact line of code on Line 81?

    • @boparaisamrat
      @boparaisamrat 3 місяці тому

      just change the letter f in fireball to capital

  • @himmelpeter1
    @himmelpeter1 Рік тому

    Hello @Bill Barnum
    I have a problem.My little space ships wont appear on the top of the screen if they Fly down. I User some Code from your Video for q school Project and cant find the problem.Pls help me

  • @spanky9705
    @spanky9705 3 роки тому +2

    Hey Bill! How would I be able to make a retry button after the game is played once

  • @D_kkeks
    @D_kkeks 7 місяців тому

    Can you please send me the link to the finished game
    LG

  • @kpieceemmry3387
    @kpieceemmry3387 Рік тому

    I am a bit confuse with var=12; what is the essence of this 12? What role is it playing. Please 🙏 help out

  • @archiex6359
    @archiex6359 3 роки тому

    the vertical wrap around on line 143 has a red block next to it and it says verticalwraparound hasn't been declared yet, we cant figure out verticalwraparound is-perhaps you meant the string "verticalWrapAround" with quotes? So when i press start is freezes and nothing moves.

    • @BillBarnum
      @BillBarnum  3 роки тому

      Can you share a public link to your code and I'll try to take a look at it this week?

  • @preetimomaya3601
    @preetimomaya3601 4 роки тому +2

    I have learnt many things from your videos including this one too like collision Detection, wrap Around, etc.. And can you send the code link for this game because move Enemy is not working for me.

    • @BillBarnum
      @BillBarnum  4 роки тому +1

      I'm happy that you found it useful!

  • @sherylmadz3442
    @sherylmadz3442 4 роки тому +1

    You used the local variable to find the x and y positions and the height and width, wouldn’t it be easier if you just made it global or turn it into a function so you can just recall it with one line if you need it?

    • @BillBarnum
      @BillBarnum  4 роки тому

      That is a good alternative way to do it.

  • @hallo3489
    @hallo3489 3 роки тому

    hey could you copy paste code in comments i keep getting it saying like, getXposition wasnt defined

  • @e-centerforprofessionaldev9730
    @e-centerforprofessionaldev9730 4 роки тому +1

    Can u make the enemys shoot the hero ship pls

    • @BillBarnum
      @BillBarnum  4 роки тому

      It could be done, but it would require several additional functions.

  • @you3339
    @you3339 4 роки тому +1

    ERROR: Line: 7: Oops, we can’t figure out what event is - perhaps you meant the string “event” with quotes? If this is meant to be a variable, make sure you declared a variable: var event
    what can i do ?

    • @yoursleepparalysisdemon1828
      @yoursleepparalysisdemon1828 4 роки тому +3

      idk, sometimes the site bugs up. try a few things with your experience with coding (even if its under 6 hours of experience it can still help)

    • @yoursleepparalysisdemon1828
      @yoursleepparalysisdemon1828 4 роки тому +3

      also, make sure there are no spaces or quotes and everything looks *exactly* the same

    • @BillBarnum
      @BillBarnum  4 роки тому +2

      Can you copy and paste line 7 into the comments so that I can see it?

    • @you3339
      @you3339 4 роки тому +1

      @@BillBarnum if (event.key = "Up")

    • @you3339
      @you3339 4 роки тому +1

      this is 7 line

  • @randomwalagaming8345
    @randomwalagaming8345 4 роки тому +1

    there is a mistake at line 130 you wrote enimines should i also write that

  • @isaiahjones5264
    @isaiahjones5264 4 роки тому +2

    Great video, but quick question im trying to make a game similar to this game like space invaders but im trying to make it horizontal and i am having trouble creating the game and wondering can u look so i can learn more on how to do it?

  • @waheedalam3722
    @waheedalam3722 3 роки тому +1

    thanks, this really helped I will give you a thousand like, and subscribe.
    😀🤗

    • @BillBarnum
      @BillBarnum  3 роки тому

      Thanks for the feedback, Waheed.

  • @abdullahbitar8727
    @abdullahbitar8727 4 роки тому +1

    I have an issue when i press on design button and go to toolbox nothing appears

    • @BillBarnum
      @BillBarnum  4 роки тому +1

      Maybe a temporary glitch. Try pressing the refresh button on your web browser.

    • @abdullahbitar8727
      @abdullahbitar8727 4 роки тому

      @@BillBarnum thanks

  • @Zealth
    @Zealth 5 років тому +2

    Hello! Everything on the code is working great, but I got stuck at 22:49.
    I'm making a game that is X-axis and I managed to work through all of it up until the Energy Bolt going to the nose of the Space-Ship, It won't go to the Space-Ship, instead, it would go to a different direction on the Y-axis. More specifically, lines 60, and 62.
    My Dad and I, have been working on this since yesterday and we are stuck and can't figure it out.
    Thank you!

    • @BillBarnum
      @BillBarnum  5 років тому +1

      I’d have to see your code to hazard a guess.
      Can you use the “share button” and provide a link to your code?
      Also, if using for a school project, remember to check with your teacher on how to cite your code.

    • @Zealth
      @Zealth 5 років тому +1

      @@BillBarnum Thank you!
      Here is the code; studio.code.org/projects/applab/PDtG0nQnAUIXjG2LiM4SwnMRhQVhz1MEx2y8Ij5AJ90
      If there is anything else I need to do please tell me.

    • @Zealth
      @Zealth 5 років тому +1

      ​@@BillBarnum Hey, how's it going? I'm back in my class and was wondering if you had an opportunity to look at the code yet?
      Thanks for your help. Have a great day!

    • @BillBarnum
      @BillBarnum  5 років тому +1

      @@Zealth,
      I changed line 68 and 69 to the following to make the bullet go to the nose of the ship. Is that what you were trying to do?
      var energyBoltX = shipX + shipWidth / 2 - 10;
      var energyBoltY = shipY - 5;
      The "-10" was to even things out a little bit, because I don't think your ship's image is quite symmetrical.

    • @Zealth
      @Zealth 5 років тому +1

      @@BillBarnum Yes that was what I was trying to do, Thank you very much!

  • @Asian2706
    @Asian2706 3 роки тому

    Hey Mr. Barnum, may I ask for your collision detection function. When I set if-statement (!getPropertyFunction), "hidden," I get an error message. Says that prorperty paramter value (object) is not a string, cannot get property "undefined" on element "Enemy4." Can you tell me what's wrong please? Thank you.

    • @BillBarnum
      @BillBarnum  3 роки тому

      For the error, you are getting, what line number and time stamp is it on in my video?

    • @Asian2706
      @Asian2706 3 роки тому

      @@BillBarnum Never mind, I solve the entire program, thank you for your help. However, I am adding a new attachment. I want to make a counter function that subtracts a counter number from a total value when enemy object is hidden. For example, enemyCounter = 7. If (Any enemy is hit/hidden) Counter - 1. I also use a label to show my counter. How do I achieve this subtract counter task?

  • @naiameyers4725
    @naiameyers4725 4 роки тому +2

    Hello! Is there a way to make the game so that if you don’t defeat the enemies in a certain amount of time, you lose?

    • @c0rti_s0l
      @c0rti_s0l 4 роки тому +1

      if (timer < amountOfTime){
      setScreen("lose_screen);
      }
      ?? I haven't tried this, but it should work (just set the variables I put there as an example to yours).

    • @naiameyers4725
      @naiameyers4725 4 роки тому

      Thank you :) I’ll try this!

  • @vishalkrishnaprasad1901
    @vishalkrishnaprasad1901 4 роки тому

    hey @bill barnum the verticalWrapAround function is not working. enemies are not wrapping around and same with my character. pls help

    • @BillBarnum
      @BillBarnum  4 роки тому

      If you share a link to your code, I'll try to take a look.

  • @mrsportyscientist2901
    @mrsportyscientist2901 4 роки тому +1

    Thanks

  • @amritsachdeva49
    @amritsachdeva49 4 роки тому +1

    can somebody please tell me why line 25 is not working for me?
    thn=ank you

    • @BillBarnum
      @BillBarnum  4 роки тому +1

      What does your line 25 look like?

    • @amritsachdeva49
      @amritsachdeva49 4 роки тому

      @@BillBarnum here is a link to my project: studio.code.org/projects/applab/RS2P17rF2f_O__r73k4YjrSlNubDlvNZyFw7s9DK0N0
      Thank you

    • @BillBarnum
      @BillBarnum  4 роки тому

      @@amritsachdeva49,
      It looks like you closed out the function on Line 24 with a }
      You shouldn't close out the function until later.

  • @mika_mdf
    @mika_mdf 4 роки тому +1

    I dont know if you see this but when I want to start at 24:43 it comes this error: Line: 64: Oops, we can’t figure out what shipWidth is - perhaps you meant the string “shipWidth” with quotes? If this is meant to be a variable, make sure you declared a variable: var shipWidth

    • @BillBarnum
      @BillBarnum  4 роки тому

      shipWidth is a variable so it should NOT be in quotes. Make sure you declared it correctly earlier in the program.

  • @rickigenefarnes5569
    @rickigenefarnes5569 4 роки тому

    is it possible to change the control from keyboard to touch?

  • @shikhasrivastava4904
    @shikhasrivastava4904 4 роки тому +1

    Sir please help my program is not moving. Sir please help me please.

  • @maykog2132
    @maykog2132 4 роки тому +1

    Thank you for the tutoral but I was wondering when you destroy the last person , how can you make the screen say , “you win”!!

    • @slendergaming8171
      @slendergaming8171 4 роки тому +2

      you could make a variable that tracks when an enemy is destroyed then when the variable is a certain value, the text shows up

    • @StruckByLightning
      @StruckByLightning 4 роки тому

      Or when it says under the stopTimedLoop line u can make a new screen and deco the screen. Then type setScreen("");

    • @leehanishrak8999
      @leehanishrak8999 4 роки тому

      @@StruckByLightning how can I make a gamescreen, start screen and end screen?

    • @StruckByLightning
      @StruckByLightning 4 роки тому

      @@leehanishrak8999 so in the lab press new screen, then deco it name it
      and then do the code. Also put some creativity into it. Ik u came here for the ap exam.

    • @leehanishrak8999
      @leehanishrak8999 4 роки тому

      @@StruckByLightning ap exam?

  • @Varsha.2013
    @Varsha.2013 4 роки тому

    sir i had not done but still i can find it said rawgames

  • @randomwalagaming8345
    @randomwalagaming8345 4 роки тому +1

    you are great sir

  • @deannalemke2641
    @deannalemke2641 6 років тому +8

    the ship probably won't move because on line 42 and 47, the first "-" is actually a "="

    • @BillBarnum
      @BillBarnum  4 роки тому +5

      Thanks for pointing that out. Unless you are full screen and high resolution, the compression can make a "=" look like a "-".

  • @nampurwalaclasses6552
    @nampurwalaclasses6552 4 роки тому

    I am here to ask you what should I do if I wanted to make the player go to lose screen if he was not able to kill all the enemies in 90 seconds

  • @WhizLearningCenter
    @WhizLearningCenter 4 роки тому

    I am having trouble with the keypress event..the code nly works on my first keydown. If I press Up key repeatedly, it does not move my mage ship . Please advise

    • @BillBarnum
      @BillBarnum  4 роки тому

      If you send me a link to your code, I'll try to look at it this week.

    • @WhizLearningCenter
      @WhizLearningCenter 4 роки тому

      UA-cam won't allow me to put a link to my code. Is there another way I can send it to you

    • @BillBarnum
      @BillBarnum  4 роки тому

      @@WhizLearningCenter
      Does the down button work properly?

    • @WhizLearningCenter
      @WhizLearningCenter 4 роки тому

      @@BillBarnum both up and down work only one tme..like the first time I click up, it will move up or if the first time I click down, it will move down...it does not work for any subsequesnt key presses.

    • @BillBarnum
      @BillBarnum  4 роки тому

      @@WhizLearningCenter
      All I can suggest is to try to make sure you got the lines of code exactly correct.
      Make the video full screen and set it to the highest resolution to make sure that you
      can see the characters correctly.

  • @abhinavpd1952
    @abhinavpd1952 4 роки тому +1

    instead of writing both X and Y values, you can copy X values and paste it and replace X with Y

  • @randomwalagaming8345
    @randomwalagaming8345 4 роки тому +1

    Sir which recorder did you used to record it???

  • @88_Bananen
    @88_Bananen 3 роки тому

    Yoo because of your Shop Video i and My Group have a Band note in it

  • @lohitgembali2610
    @lohitgembali2610 4 роки тому

    hi can you plese help me in my code it does not work the ENERGYBOLDX does not work in line 99

    • @BillBarnum
      @BillBarnum  4 роки тому

      Perhaps you misspelled something. There shouldn't be the letter "d" in that variable name.

    • @lohitgembali2610
      @lohitgembali2610 4 роки тому

      @@BillBarnum true

  • @druvasuresh6111
    @druvasuresh6111 4 роки тому +1

    it is so easy thank you

  • @AJ-xh8ub
    @AJ-xh8ub 6 років тому +2

    Thank you for this video! It helped me out a bunch!

  • @f1n3ss3r4
    @f1n3ss3r4 6 років тому +1

    Hey there! What would be the code for making something be able to shoot something from the character?

    • @BillBarnum
      @BillBarnum  6 років тому

      I explain how to write the fire function at 19:54.
      The function starts on line 48.

    • @f1n3ss3r4
      @f1n3ss3r4 6 років тому +1

      Bill Barnum alright thanks so much!

  • @irenosenisiramen9018
    @irenosenisiramen9018 4 роки тому +1

    My line 21 keeps showing red, saying the bracket is unmatched. i don't know how to repair it. How can i repair that ?

    • @irenosenisiramen9018
      @irenosenisiramen9018 4 роки тому

      @@dorenesmith8062 lol yes i already figured it out.

    • @irenosenisiramen9018
      @irenosenisiramen9018 4 роки тому

      Thank u. But I wrote the program for the energy bolt to come in front of the rocket but it didn't work....

  • @Armaan-fz1pz
    @Armaan-fz1pz 5 років тому +1

    My enemies are not wrapping around. Once they go off to the bottom of the screen they do not come back up

    • @BillBarnum
      @BillBarnum  5 років тому

      I'd recommend trying to rewrite the lines for code that handle the wrapping.

    • @eeshasiram7761
      @eeshasiram7761 5 років тому

      try making a loop function

  • @creativeknowledge7609
    @creativeknowledge7609 4 роки тому +1

    very nice ...

  • @lb1426
    @lb1426 4 роки тому +2

    This is epic

  • @nampurwalaclasses6552
    @nampurwalaclasses6552 4 роки тому

    How do I get Those spaceship images?

  • @randomwalagaming8345
    @randomwalagaming8345 4 роки тому +1

    mine enemy are moving together what to do

    • @BillBarnum
      @BillBarnum  4 роки тому +1

      Send me a link to your code and I will try to look at it this week.

    • @randomwalagaming8345
      @randomwalagaming8345 4 роки тому +1

      Pls send me your images which you used

    • @BillBarnum
      @BillBarnum  4 роки тому +1

      @@randomwalagaming8345
      In the video, I tell you where you can find them.

    • @randomwalagaming8345
      @randomwalagaming8345 4 роки тому +1

      But I can’t get it pls give link today I will remake it

    • @randomwalagaming8345
      @randomwalagaming8345 4 роки тому +1

      Bill Barnum can it be because mine enemies are not downloaded I have taken screenshot ????

  • @reybairagya9906
    @reybairagya9906 4 роки тому

    where did you get those images
    Please Reply

  • @magnuskreuz5653
    @magnuskreuz5653 3 роки тому

    Hey guys can someone help me fast I have to do a project for school.
    And in Line 7 the Programm say that there is a mistake but I looked for 6 times and everything is fine. Now somebody what is wronge? It would be nice if you could help me.

    • @eneaferrari1758
      @eneaferrari1758 3 роки тому +1

      There isn’t supposed to be anything on number 7, it is just blank.

  • @kianemebarek6521
    @kianemebarek6521 3 роки тому

    Can you check my code its not working it has red squares and im trying to fix it

    • @BillBarnum
      @BillBarnum  3 роки тому

      Can you share a link?

    • @kianemebarek6521
      @kianemebarek6521 3 роки тому

      @@BillBarnum instead I ended up doing the slot machine but the the images don't change so I need help

    • @BillBarnum
      @BillBarnum  3 роки тому

      @@kianemebarek6521
      Can you share a link?

    • @kianemebarek6521
      @kianemebarek6521 3 роки тому

      @@BillBarnum where do i send it

    • @BillBarnum
      @BillBarnum  3 роки тому

      @@kianemebarek6521
      You could try pasting it in the comments.

  • @liampeach7692
    @liampeach7692 4 роки тому

    so when I press start all of the enemies grow and are huge for some reason and their hit boxes are touching so no matter what i hit at least 2. plz help me make them spawn in on their original width and height.

  • @rasmushjlund4164
    @rasmushjlund4164 4 роки тому

    hey how did you use the "and" symbols. 46.18

    • @BillBarnum
      @BillBarnum  4 роки тому +1

      Rasmus Højlund,
      Hold down the shift key and press 7

  • @halasheikh9840
    @halasheikh9840 6 років тому

    what is your code for killing the space ships...I don't understand @Bill Barnum

  • @Stephanie-fx3mi
    @Stephanie-fx3mi 5 років тому

    my ships will all disappear instead of only one when i shoot . i've rechecked my code a few times. Any ideas of what the problem is?

    • @BillBarnum
      @BillBarnum  5 років тому

      I'd start by trying to retype the function related to collision detection to see if that resolves the issue.

    • @Stephanie-fx3mi
      @Stephanie-fx3mi 5 років тому

      Bill Barnum ok, thank you:)

  • @Kiyotaka_realedits
    @Kiyotaka_realedits 4 роки тому

    Can you send the link of the images

    • @BillBarnum
      @BillBarnum  4 роки тому

      I don't have the link handy but they are on opengameart.org/
      I mention the author of the graphics in the video, so you can search by their name.

  • @letslearnenglishwithmustak1669
    @letslearnenglishwithmustak1669 4 роки тому

    Sir how to create the apk of app.
    Please guide me.

  • @danielserna3434
    @danielserna3434 4 роки тому +1

    @Bill Barnum my code won't declare enemiesMovingLeft it says" 'enemiesMovingLeft' hasn't been declares yet."

  • @chaitalimukherjee7324
    @chaitalimukherjee7324 4 роки тому

    can you please share this project link , so that i can see it in block mode to understand better.. thanks a lot in advance..

    • @BillBarnum
      @BillBarnum  4 роки тому

      Sorry, but I don't have the code posted publicly.

  •  6 років тому

    Can you answer me a question? how do i make the object (enemies) don't shoot when hidden?

    •  6 років тому

      i made the enemy ships can shoot too

    • @BillBarnum
      @BillBarnum  6 років тому

      Red Hollister,
      I would need to see your code to give you feedback.

    •  6 років тому +1

      Dont need anymore,i will not use it anyway,i already sent my App to my project already,but thanks

  • @jasminagoza5240
    @jasminagoza5240 5 років тому +2

    Hi, I've come so far 17:50 and my ship wont move at all. How are you moving your ship?

    • @rhondaelliott2558
      @rhondaelliott2558 5 років тому +1

      I've found it to be an issue in the app lab if you use app lab. its the event.key but you can look up a code that lets your ship work. ive also recreated his code and it is not working on several accounts. the only thing I have seen work is the timer.

    • @triherbalcosmeticsinc8820
      @triherbalcosmeticsinc8820 5 років тому

      Yeah same for me. It literally doesn’t move

  • @fungusbunny9950
    @fungusbunny9950 6 років тому

    how would i make the bolt fly in the opposite direction?

    • @BillBarnum
      @BillBarnum  6 років тому

      On line 99 at 32:07 you would subtract energyBoltSpeed instead of adding it

  • @mariahfrench2852
    @mariahfrench2852 5 років тому +1

    for some reason my enemies are not wrapping. the code is all correct

    • @BillBarnum
      @BillBarnum  5 років тому

      A couple of ideas:
      1. Look for yellow triangle warnings and highlight them with your cursor. Sometimes these indicate errors.
      2. Make sure the wrapAround() function is called from all the correct places.
      3. Sometimes “=“ and “-“ can look the same on the video.
      4. Try retyping the wrapAround() function from the video.

  • @FunnyLe
    @FunnyLe 5 років тому

    My spacheship won't move down when i press keydown like in 11:56..

    • @BillBarnum
      @BillBarnum  5 років тому +1

      I would start by deleting and rewriting the function that handles key press listeners.

  • @kstudios8455
    @kstudios8455 6 років тому

    Hey I was wondering if you could help me out with my code. The problem is that it keeps telling me it can't figure out what enemiesRemainding is.

    • @BillBarnum
      @BillBarnum  6 років тому

      Post a link to your code and I'll try to take a look this week.

  • @you3339
    @you3339 4 роки тому +1

    will you make tic tak toe

  • @anayazaineb104
    @anayazaineb104 5 років тому +1

    i checked my program many times, however, this isnt running. please helpp

    • @rhondaelliott2558
      @rhondaelliott2558 5 років тому

      his code is having difficulty in app lab mine also isn't working and have had to use other tricks to get it to work.

    • @rhondaelliott2558
      @rhondaelliott2558 5 років тому

      @RO NICK I could but I did it months ago and I don't know how to set that up I'm sorry

  • @krishshah1806
    @krishshah1806 4 роки тому

    Hello, I am recreating a rendition of this for a school project and was wondering if there is anyway I could get help. When the player finishes the game I want the game to go to another screen which would show a button to play again or add their name to a leader board. I have the leader board and button ready but i am confused on how i can transition from the game ending to the other screen. Any help or advice would be appreciated.

    • @ayaashraf5960
      @ayaashraf5960 4 роки тому

      I think you should set a variable for the score and when it reaches a certain value the screen gets set to the screen you want them to go to

  • @carolinehald9021
    @carolinehald9021 4 роки тому

    Can you help? Something doesn't work

  • @bvssrsguntur6338
    @bvssrsguntur6338 5 років тому

    how do you move it up and down

    • @BillBarnum
      @BillBarnum  5 років тому

      I talk about that at 6:28

  • @AshleyT-g9k
    @AshleyT-g9k 3 роки тому

    how do i delete someone elses video

    • @BillBarnum
      @BillBarnum  3 роки тому

      Sorry, I don't think you can do that. 🙁

  • @beatriznavas4234
    @beatriznavas4234 5 років тому +1

    thank you so much

    • @BillBarnum
      @BillBarnum  5 років тому

      I'm glad you found it useful!

  • @emmanueladeleke1555
    @emmanueladeleke1555 4 роки тому +1

    I'm doing this horizontally and the ball keeps moving off the screen

  • @janicegreb
    @janicegreb 5 років тому

    hey so i have a probrblem wre my ship wont move

    • @BillBarnum
      @BillBarnum  5 років тому

      I would recommend deleting and rewriting the code that controls the motion of your ship.
      Sometimes it can be hard to catch a very small mistake.

    • @janicegreb
      @janicegreb 5 років тому +1

      Ok thanks

  • @meenamhatre2204
    @meenamhatre2204 4 роки тому

    Error - setPosition ( ) id parameter value (-27.5) is not a string.warning: line: 50:

  • @asiertekle8428
    @asiertekle8428 4 роки тому +1

    Is this JavaScript

    • @BillBarnum
      @BillBarnum  4 роки тому

      The App Lab environment is built on top of JavaScript.

    • @asiertekle8428
      @asiertekle8428 4 роки тому

      Bill Barnum I have a game that I’ve been working hard on but when I press play something is wrong with it that I don’t know can you check it out for me? studio.code.org/s/csp-create-2019/stage/3/puzzle/2

  • @aadityarajput7193
    @aadityarajput7193 4 роки тому +1

    ERROR: Line: 1: SyntaxError: Unterminated string constant (1:23)

    • @BillBarnum
      @BillBarnum  4 роки тому

      Can you copy and paste your code from line 1?

    • @randomwalagaming8345
      @randomwalagaming8345 4 роки тому

      mine is right I copied it so many times than it got correct try it again

  • @lohitgembali2610
    @lohitgembali2610 4 роки тому

    plese help me i want it to work

  • @EvanImatlantis1
    @EvanImatlantis1 3 роки тому

    Dude... 1:09 you didn't show us how you got that searched up...

  • @7419z
    @7419z 4 роки тому

    i followed the whole thing but it says its wrong can you send me the thing?

  • @RAP1DCL1CKS
    @RAP1DCL1CKS 6 років тому

    How do you get your ship sideways?

    • @BillBarnum
      @BillBarnum  6 років тому

      I rotated the image before I uploaded it.

  • @finessefr3952
    @finessefr3952 6 років тому

    the ship wont move when i go to test it the very 1st time. Plz help and comment!

    • @BillBarnum
      @BillBarnum  6 років тому

      Post a link to your code and I'll try to look at it next week.

    • @Asad2230
      @Asad2230 5 років тому

      Can u send the code plz

  • @e-centerforprofessionaldev9730
    @e-centerforprofessionaldev9730 4 роки тому +1

    So many variables

  • @carnivalride913
    @carnivalride913 3 роки тому

    I can't move my enemy

  • @blakefleming5246
    @blakefleming5246 6 років тому +1

    when I click run it shows me ERROR: Line: 110: SyntaxError: Unexpected token (110:22) - var energyBoltSpeed - energyBolyX / 10;

    • @BillBarnum
      @BillBarnum  6 років тому

      It looks like you have a - where you should have an =

    • @blakefleming5246
      @blakefleming5246 6 років тому

      @@BillBarnum thanks I have one more question I am trying to put the start button back at the end of the game but I cant get it to work do you know how to do it

    • @blakefleming5246
      @blakefleming5246 6 років тому

      @@BillBarnum i got the start button to return but i can only reset the timer how do i get the rest of it to reset

    • @BillBarnum
      @BillBarnum  6 років тому

      @@blakefleming5246 You would need to write a function to move every object back to its original position and to reset all of the global variables to their original values.

    • @blakefleming5246
      @blakefleming5246 6 років тому

      @@BillBarnum ok thank you

  • @elifogelsoneki4833
    @elifogelsoneki4833 5 років тому +2

    Thank you for a great tutorial, however whenever I press the up key,it says Error line:31 Oops, we can,t figure out what event is. This does this to also when I press the down key and enter. Please Help

    • @BillBarnum
      @BillBarnum  5 років тому

      If you post a link to your code, I'll try to take a look at it this week.

    • @BillBarnum
      @BillBarnum  5 років тому

      @@elifogelsoneki4833,
      You need to share your project for me to look at it. It says it is private to you.

    • @elifogelsoneki4833
      @elifogelsoneki4833 5 років тому

      Sorry I have not done this before
      How do you do that

    • @BillBarnum
      @BillBarnum  5 років тому

      @@elifogelsoneki4833 ,
      This video explains the process. You will probably have to fast forward to the part about sharing.
      ua-cam.com/video/LSouYutNbos/v-deo.html

  • @12ppande
    @12ppande 4 роки тому

    I cant move down

  • @veadfvnofvpoano9162
    @veadfvnofvpoano9162 6 років тому

    Just finished following along with the video, but when I hit "start" everything freezes :(

    • @jamzey7323
      @jamzey7323 6 років тому

      Wow you commented 2 minutes ago

    • @BillBarnum
      @BillBarnum  6 років тому

      Post a link to your code and I’ll try to take a look at it this week.

    • @veadfvnofvpoano9162
      @veadfvnofvpoano9162 6 років тому

      Thank you!

    • @BillBarnum
      @BillBarnum  6 років тому

      @@veadfvnofvpoano9162,
      A few things that I noticed to start with:
      1. You misspelled the function "collisionDetection" on line 153
      2. You are missing an opening ( after the "if" on line 167
      3. You are missing 3 closing } around lines 177 - 178
      4. You are missing 2 closing } on lines 68 and 69

    • @anderslander6591
      @anderslander6591 4 роки тому

      @@jamzey7323 wow you commented a year ago

  • @theasianguy5620
    @theasianguy5620 6 років тому +1

    Yeah how would you make a reset button where everything goes back to normal without pressing the reset button they give you

    • @BillBarnum
      @BillBarnum  6 років тому

      You would need to have a button that would:
      1. Move ALL objects back to their original position
      2. Change ALL objects back to their original visibility
      3. Reset the values of ALL the global variables back to their original values.

  • @triherbalcosmeticsinc8820
    @triherbalcosmeticsinc8820 5 років тому

    Ship doesn’t move after first try from line 18

    • @triherbalcosmeticsinc8820
      @triherbalcosmeticsinc8820 5 років тому

      But no errors pop up

    • @BillBarnum
      @BillBarnum  5 років тому

      I'd check for any yellow or red flags to the left of any lines of code and then try to resolve them.

    • @triherbalcosmeticsinc8820
      @triherbalcosmeticsinc8820 5 років тому

      Bill Barnum no yellow or red errors show on my end

    • @BillBarnum
      @BillBarnum  5 років тому

      If you send me a link to your code, I'll try to take a look at it this week.

  • @lohitgembali2610
    @lohitgembali2610 4 роки тому

    i want help plese help me

    • @BillBarnum
      @BillBarnum  4 роки тому

      What seems to be the issue?

  • @janicegreb
    @janicegreb 5 років тому +1

    hey so i know this isn"t app lab but on game lab i can't place any sprites and codes guides arn't wocking plese help they won't resopnd

    • @tylerhayes4584
      @tylerhayes4584 5 років тому

      flame star did u put down drawsprite?

  • @anitamokashi5712
    @anitamokashi5712 4 роки тому +1

    when I make my enemies move they constantly move backwards even
    though I have written the same code

  • @abrahamplascencia577
    @abrahamplascencia577 4 роки тому +1

    hey man in the part 91 when

  • @staarexams2144
    @staarexams2144 6 років тому

    could i use this for a project of create pt

    • @BillBarnum
      @BillBarnum  6 років тому

      You will need to ask your teacher for his/her rules to make sure it is OK with them.
      Per the College Board, if you do use code from this, you must cite it and you can't use it for your algorithms or your abstraction.

    • @BillBarnum
      @BillBarnum  6 років тому

      You need to be very careful when you are submitting a project to the College Board as part of your Create Task.
      You'll definitely want to consult with your teacher to discuss what code is appropriate to reuse and how to cite it.
      You'll also want to consult the College Board's instructions on the Create Task:
      apcentral.collegeboard.org/pdf/ap-csp-student-task-directions.pdf#page=14

    • @staarexams2144
      @staarexams2144 6 років тому

      Another question, is there chances that Collegeboard wont find out and can I have your email for future question

    • @BillBarnum
      @BillBarnum  6 років тому

      You could cite it from the title and address of the UA-cam video. Consult with your instructor to make sure that your citations meet College Board requirements.

    • @BillBarnum
      @BillBarnum  6 років тому

      You don't want to take a risk with not properly citing something or misrepresenting part of your project. Consult your instructor for help following College Board rules.

  • @wilsoncastaneda9919
    @wilsoncastaneda9919 6 років тому

    How many lines did you use?

  • @TracerPerez
    @TracerPerez 6 років тому +1

    My energy bolt isn't moving to the center of my ship.

    • @BillBarnum
      @BillBarnum  6 років тому

      If you share a link to your code, I'll try to take a look at it this week.

    • @TracerPerez
      @TracerPerez 6 років тому

      studio.code.org/projects/applab/-O2u2xztbn-u4wYIcMM5VewV_Vk_451wsBzt-c-hrTs/edit

    • @TracerPerez
      @TracerPerez 6 років тому

      Sir?

    • @BillBarnum
      @BillBarnum  6 років тому

      It says "Sorry, this project is not available for sharing. " Make sure that you have settings to share it turned on.