I need help with coding!

helpwithcode

#1

Hi guys!!! I'm working on a project and I need some help with code. It's a ball physics thing. I'm having trouble with a platform. When the ball rolls off the platform, I want it to fall back to the ground.
@SmileyAlyssa @Bananadog @SmilingSnowflakes

https://c.gethopscotch.com/p/y73kzn3kg

Thanks, -KoalaKrazy


#2

I think it's because you have a rule that won't allow the ball below 404 or something? When the screen is tapped, the ball jumps, but after it lands on the platform it won't go below the platform's y position, so it doesn't 'fall'

I might be able to look at this later, but does that make sense? :0

I'm really sorry! I have to go and won't have much time to look at it, but looks amazing so far! :D


#3

Thanks! I'm making it into a game. I'll look into it and try and fix stuffs.....:wink:


#4

I think you should ask @Valgo!


#5

I'm trying to fix it... But it isn't working.

I'm not that good at physics, sorry. But I'll keep trying!


#6

I always keep trying! :wink: But I need to do my math homework.


#7

oh btw I think I figured it out? I think.


#8

I've lost all hope in the forum

Nobody's tagged me ;-;

But I fixed it :D

I didn't really want to destroy all your work (mostly because I couldn't understand it) so I made a blue ball with totally different values

https://c.gethopscotch.com/p/y73t6dtql

was your math homework hard?


#9

Dude! No way! Thank you SSOOO MUCH!

Yeah, my algebra is pretty hard.......well, I've forgotten mostly everything.

Unless you know what (10p)11 is....but thanks!!! I'll give credit AND a shoutout!
:wink: :wink::wink::wink::wink::wink::wink::wink::wink::wink::wink::wink::wink::wink::wink::wink::wink::wink::wink::wink::wink:


#10

Once again, thank you so much!


#11

No problem

There's a Youtube video on flappy bird that explains it better (they took it off the app for some reason :/