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

แชร์
ฝัง
  • เผยแพร่เมื่อ 21 พ.ย. 2024

ความคิดเห็น • 311

  • @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.

  • @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?

  • @mukunthp8523
    @mukunthp8523 4 ปีที่แล้ว +6

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

  • @UsTube.
    @UsTube. 10 หลายเดือนก่อน +1

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

  • @deannalemke2641
    @deannalemke2641 5 ปีที่แล้ว +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 "-".

  • @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?

  • @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

  • @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!

  • @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 24 วันที่ผ่านมา

      just change the letter f in fireball to capital

  • @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?

  • @AJ-xh8ub
    @AJ-xh8ub 6 ปีที่แล้ว +2

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

  • @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.

  • @spanky9705
    @spanky9705 3 ปีที่แล้ว +2

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

  • @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.

  • @randomwalagaming8345
    @randomwalagaming8345 4 ปีที่แล้ว +1

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

  • @greaseball9216
    @greaseball9216 2 ปีที่แล้ว +2

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

  • @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?

    • @cortisol_induced_coma
      @cortisol_induced_coma 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!

  • @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!

  • @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?

  • @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

  • @randomwalagaming8345
    @randomwalagaming8345 4 ปีที่แล้ว +1

    you are great sir

  • @mrsportyscientist2901
    @mrsportyscientist2901 4 ปีที่แล้ว +1

    Thanks

  • @creativeknowledge7609
    @creativeknowledge7609 4 ปีที่แล้ว +1

    very nice ...

  • @randomwalagaming8345
    @randomwalagaming8345 4 ปีที่แล้ว +1

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

    • @BillBarnum
      @BillBarnum  4 ปีที่แล้ว +1

      Screencast-o-matic

  • @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?

  • @druvasuresh6111
    @druvasuresh6111 3 ปีที่แล้ว +1

    it is so easy thank you

    • @BillBarnum
      @BillBarnum  3 ปีที่แล้ว

      Most welcome 😊

  • @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.

  • @88_Bananen
    @88_Bananen 2 ปีที่แล้ว

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

  • @f1n3ss3r4
    @f1n3ss3r4 5 ปีที่แล้ว +1

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

    • @BillBarnum
      @BillBarnum  5 ปีที่แล้ว

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

    • @f1n3ss3r4
      @f1n3ss3r4 5 ปีที่แล้ว +1

      Bill Barnum alright thanks so much!

  • @YuvaaanandVivaaan
    @YuvaaanandVivaaan 4 ปีที่แล้ว +6

    Got it thks

  • @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....

  • @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.

  • @rickigenefarnes5569
    @rickigenefarnes5569 4 ปีที่แล้ว

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

  • @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

  • @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

  • @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

  • @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

  • @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

  • @nampurwalaclasses6552
    @nampurwalaclasses6552 3 ปีที่แล้ว

    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

    • @spanky9705
      @spanky9705 3 ปีที่แล้ว

      if statement

  • @beatriznavas4234
    @beatriznavas4234 5 ปีที่แล้ว +1

    thank you so much

    • @BillBarnum
      @BillBarnum  5 ปีที่แล้ว

      I'm glad you found it useful!

  • @liampeach7692
    @liampeach7692 3 ปีที่แล้ว

    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.

  • @Asian2706
    @Asian2706 2 ปีที่แล้ว

    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  2 ปีที่แล้ว

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

    • @Asian2706
      @Asian2706 2 ปีที่แล้ว

      @@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?

  • @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.

  • @halasheikh9840
    @halasheikh9840 5 ปีที่แล้ว

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

  • @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

  • @shikhasrivastava4904
    @shikhasrivastava4904 4 ปีที่แล้ว +1

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

  • @vishalkrishnaprasad1901
    @vishalkrishnaprasad1901 3 ปีที่แล้ว

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

    • @BillBarnum
      @BillBarnum  3 ปีที่แล้ว

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

  • @e-centerforprofessionaldev9730
    @e-centerforprofessionaldev9730 4 ปีที่แล้ว +1

    So many variables

  • @Varsha.2013
    @Varsha.2013 4 ปีที่แล้ว

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

  •  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

  • @D_kkeks
    @D_kkeks 5 หลายเดือนก่อน

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

  • @hallo3489
    @hallo3489 2 ปีที่แล้ว

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

  • @emmanueladeleke1555
    @emmanueladeleke1555 4 ปีที่แล้ว +1

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

  • @lb1426
    @lb1426 4 ปีที่แล้ว +2

    This is epic

    • @BillBarnum
      @BillBarnum  4 ปีที่แล้ว

      Thanks for your feedback!

  • @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.

  • @WhizLearningCenter
    @WhizLearningCenter 3 ปีที่แล้ว

    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  3 ปีที่แล้ว

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

    • @WhizLearningCenter
      @WhizLearningCenter 3 ปีที่แล้ว

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

    • @BillBarnum
      @BillBarnum  3 ปีที่แล้ว

      @@WhizLearningCenter
      Does the down button work properly?

    • @WhizLearningCenter
      @WhizLearningCenter 3 ปีที่แล้ว

      @@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  3 ปีที่แล้ว

      @@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.

  • @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.

  • @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 ????

  • @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

  • @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.
      th-cam.com/video/LSouYutNbos/w-d-xo.html

  • @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

  • @you3339
    @you3339 4 ปีที่แล้ว +1

    will you make tic tak toe

  • @blakefleming5246
    @blakefleming5246 5 ปีที่แล้ว +1

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

    • @BillBarnum
      @BillBarnum  5 ปีที่แล้ว

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

    • @blakefleming5246
      @blakefleming5246 5 ปีที่แล้ว

      @@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 5 ปีที่แล้ว

      @@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  5 ปีที่แล้ว

      @@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 5 ปีที่แล้ว

      @@BillBarnum ok thank you

  • @Stephanie-fx3mi
    @Stephanie-fx3mi 4 ปีที่แล้ว

    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  4 ปีที่แล้ว

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

    • @Stephanie-fx3mi
      @Stephanie-fx3mi 4 ปีที่แล้ว

      Bill Barnum ok, thank you:)

  • @FunnyLe
    @FunnyLe 4 ปีที่แล้ว

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

    • @BillBarnum
      @BillBarnum  4 ปีที่แล้ว +1

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

  • @RAP1DCL1CKS
    @RAP1DCL1CKS 5 ปีที่แล้ว

    How do you get your ship sideways?

    • @BillBarnum
      @BillBarnum  5 ปีที่แล้ว

      I rotated the image before I uploaded it.

  • @7419z
    @7419z 4 ปีที่แล้ว

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

  • @danielserna3434
    @danielserna3434 4 ปีที่แล้ว +1

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

  • @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

  • @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

  • @mitogaming101
    @mitogaming101 6 ปีที่แล้ว +1

    my ship is not moving

    • @BillBarnum
      @BillBarnum  6 ปีที่แล้ว +1

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

    • @mitogaming101
      @mitogaming101 5 ปีที่แล้ว

      Sorry i havent responded

    • @mitogaming101
      @mitogaming101 5 ปีที่แล้ว

      I wached your vid the whole tutorial and my ship and everything is working thnx for the help any way

    • @maayanthnair781
      @maayanthnair781 4 ปีที่แล้ว

      @@mitogaming101 Can you drop the URL?

    • @michaeldevlin5605
      @michaeldevlin5605 3 ปีที่แล้ว

      @@mitogaming101 facts drop it

  • @reybairagya9906
    @reybairagya9906 4 ปีที่แล้ว

    where did you get those images
    Please Reply

  • @letslearnenglishwithmustak1669
    @letslearnenglishwithmustak1669 4 ปีที่แล้ว

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

  • @nampurwalaclasses6552
    @nampurwalaclasses6552 3 ปีที่แล้ว

    How do I get Those spaceship images?

  • @EvanImatlantis1
    @EvanImatlantis1 3 ปีที่แล้ว

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

  • @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

  • @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.

  • @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.

  • @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

  • @carolinehald9021
    @carolinehald9021 4 ปีที่แล้ว

    Can you help? Something doesn't work

  • @finessefr3952
    @finessefr3952 5 ปีที่แล้ว

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

    • @BillBarnum
      @BillBarnum  5 ปีที่แล้ว

      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

  • @veadfvnofvpoano9162
    @veadfvnofvpoano9162 5 ปีที่แล้ว

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

    • @jamzey7323
      @jamzey7323 5 ปีที่แล้ว

      Wow you commented 2 minutes ago

    • @BillBarnum
      @BillBarnum  5 ปีที่แล้ว

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

    • @veadfvnofvpoano9162
      @veadfvnofvpoano9162 5 ปีที่แล้ว

      Thank you!

    • @BillBarnum
      @BillBarnum  5 ปีที่แล้ว

      @@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

  • @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

  • @bvssrsguntur6338
    @bvssrsguntur6338 5 ปีที่แล้ว

    how do you move it up and down

    • @BillBarnum
      @BillBarnum  5 ปีที่แล้ว

      I talk about that at 6:28

  • @meenamhatre2204
    @meenamhatre2204 4 ปีที่แล้ว

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

  • @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.

  • @AshleyT-g9k
    @AshleyT-g9k 3 ปีที่แล้ว

    how do i delete someone elses video

    • @BillBarnum
      @BillBarnum  3 ปีที่แล้ว

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

  • @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.

  • @ayeshakhalid4529
    @ayeshakhalid4529 4 ปีที่แล้ว +1

    send me code plz

  • @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?

  • @johnjames7319
    @johnjames7319 4 ปีที่แล้ว

    personal timestamp, 31:47

  • @djfloque9404
    @djfloque9404 4 ปีที่แล้ว +1

    hey bill

  • @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

  • @abrahamplascencia577
    @abrahamplascencia577 4 ปีที่แล้ว +1

    hey man in the part 91 when

  • @kianemebarek6521
    @kianemebarek6521 2 ปีที่แล้ว

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

    • @BillBarnum
      @BillBarnum  2 ปีที่แล้ว

      Can you share a link?

    • @kianemebarek6521
      @kianemebarek6521 2 ปีที่แล้ว

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

    • @BillBarnum
      @BillBarnum  2 ปีที่แล้ว

      @@kianemebarek6521
      Can you share a link?

    • @kianemebarek6521
      @kianemebarek6521 2 ปีที่แล้ว

      @@BillBarnum where do i send it

    • @BillBarnum
      @BillBarnum  2 ปีที่แล้ว

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

  • @fikirtilahun9416
    @fikirtilahun9416 4 ปีที่แล้ว +2

    37:58 personal timestamp

  • @anitamokashi5712
    @anitamokashi5712 4 ปีที่แล้ว +1

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

  • @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.

  • @carnivalride913
    @carnivalride913 3 ปีที่แล้ว

    I can't move my enemy