Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hour 5 Game major bugs #22

Open
KoopHauss opened this issue Sep 22, 2018 · 3 comments
Open

Hour 5 Game major bugs #22

KoopHauss opened this issue Sep 22, 2018 · 3 comments

Comments

@KoopHauss
Copy link

I'm able to run the game but, have no clue how to fix the bugs that are happening. I've gone through all the finished scripts both sets, and cannot find any errors or differences that I didn't already fix in the coding. here are the bugs:

  • ship and asteroid don't interact. At all.
  • shot doesn't queue free after connecting with the asteroid.
  • asteroids do not spawn and the one asteroid that is on screen does not move.
  • explosion scene doesn't queue free after destroying the asteroid.
  • score counter counts even after shot(s) leave the screen, but not at all when destroying the one
    asteroid. And explosion animation appears at the end of the screen where the shot exited the screen
    and also doesn't queue free.
  • Appears to be only the top laser that effects the score counter.
  • Holding space is infinite shoot. (not solid laser beam)
  • counter doesn't count by +1 ( as the counter counts the shots leaving the screen, the counter will
    sometimes increase by a couple to several hundred points)
@Cincainame04
Copy link

@KoopHauss you are not alone. I also have some problem of my own:

From Listing 5.9 (Spawning Asteroids and tracking the Score). I have some major problems which hugely affect the game's performance:

  • Instances of asteroids won't move anymore. They just stay at the edge of the screen doing nothin. And the laser shots won't affect any of the instance of the asteroids but the ship is able to collide with the asteroids instances and explode

  • The score is not incrementing as I destroy any asteroids.

  • In the debugger error section. One of the error (probably the main problem) states that: " Attempting to connect nonexistent signal "score" to Node2D......

  • I checked multiple times of my scripting and my signals and everything seems perfectly fine to me.

Hopefully someone can give me the correct solution to this problem. Thanks a [lot.](url
Screenshot (34)
Screenshot (35)

)

@jackryantaylor
Copy link

So the book didn't tell you to do this, but you need to assign player, shot and asteroid to groups of the same name in the Node panel. Hope this helps and btw, I know I'm late!

@Knochi
Copy link

Knochi commented Jan 31, 2022

Same issue here.. it works in the example code without a script in the "explosions" node. But I don't get how to connect to a function "queue_free" without a script. Getting "no script at all" in the connect signal dialogue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants