Help With A Game

help
helpwithcode

#1

Hi everyone! I'm Czarcasm and I just started Hopscotch. I am working on a game called Blob Bounce. I am almost done with it, but I have a few problems that I can't seem to solve. This game is like Brick Breaker. In Brick Breaker the ball bounces on the edge a lot. It also bounces off the corners. In the game I am working on, the ball sometimes gets stuck in the corner. Can someone please tell me how to get it out of the corner when this happens? Thank you!
-Czarcasm :slight_smile:


#2

Welcome, @Czarcasm! Nice to meet you. :smiley:

I'll check out your game and see what I can find.


#3

Oh, wait, it's not published. XD

Can you publish it, or can I see code screenshots? :)


#4

Can you give a link? I'll look through it and try to help!
Or give screenshots? Do that by pressing the home button and power button!
Welcome to the forum!


#5

Thanks! The thing is, I haven't published it yet. If you would like, I can send you pictures of the code, or can publish it in it's unfinished form. Just tell me whatever is easiest.
-Czacasm


#6

Okay. Can you publish it? Thanks!


#7

Here is the link: Blob Bounce
Thank you guys so much! You are so helpful!
-Czarcasm


#8

Thank you! I posted the link to the project for you.
Thanks (again)!
-Czarcasm


#9

I caught what's wrong in your code! :sweat_smile:

When you're telling it to repeat forever, and move 25, it'll keep going until it hits the platform, correct?

Well, it keeps getting stuck because you told it to keep going 25.
The platform cannot reach the upper corner to make it change direction, so it's stuck there. The ball cannot move more than the length of the iPad.


#10

Thank you! But the problem is, I told it to flip when it hits the edge and turn. The ball isn't moving anywhere when it hits the corners. This only happens sometimes though, so I really don't kno if it's just a glitch, or a problem on my part.
-Czarcasm


#11

Wait a second, let me help you.
I think I know how to fix it.
I'll remix on my second account when it's done being fixed, okay? :slight_smile:
Could you give me credit if it works?


#12

Woah! That game is so cool! I really like the letter animations on the home page. :smiley:

Change your "When Circle bumps Edge" rule to:
Turn degrees: 140
Move Forward: 25

That will make it bounce of of the edges. Or you could try @Snoopy's code.


#13

Thank you so much! Sure I'll give credit. Your the best!
-Czarcasm


#14

It'll take a while, I'll probably reply with a bug fix in a few hours.
And, no problem! :slight_smile:


#15

Thank you so (times a million) much! You are so helpful!
-Czarcasm


#16

Thanks! That's great.
-Czarcasm


#17

@Czarcasm fixed it! Here's the link- https://c.gethopscotch.com/p/y6sw9hpns
If you want me to explain how I fixed it, just tag me!
In the project, give credit to Snoopy (:art:)!
Snoopy(:art:) - Two! is my second account for remixes! :slight_smile:


#18

Welcome to Hopscotch and the forum!


#19

Thank you so much @Snoopy!
-Czarcasm


#20

Belated welcome @Czarcasm! Cool name! I'm Komplettverrücktjunge but call me KVJ! Tag me anytime like "@KVJ"!