Okay I am making a fun game (hopefully it will be fun) and I need help. Many people who make platformers (I am trying to make one) make their main character if they hit the wall from the left side, it bounces back left and if it hits bottom of the block it goes back down. Can somebody explain to me using blocks on how to do this without using like sqrt of 10, because that confuses me greatly. Also, my character freezes in air, while others you can smoothly run in air, (I am not using x velocity y velocity) but mine just freezes, but while others use x velocity y velocity variables, which I am not, so can somebody explain to make my character jump smoothly in the air, and can move right or left before touching the ground again in the air. Please help somebody, I am in desperate need of help.
Offline
kayybee wrote:
Sqrt is square ROOT, by the way.
And that won't help you in platformers, anyway.
As for your glitches, it'd be much easier if we could see your current project, instead of just knowing "it freezes".
Okay I will upload it. Please don't mention a word to others (it's supposed to be a secret). I will delete it once you are done with it. It is called Ball Picker (it will be renamed when the full version comes out).
Offline
Okay edit to the first post that began this. Okay, so now I found some Scratch Wiki stuff, and used it. So now I am using x velocity variable. I got it to move left and right in my satisfaction but the only thing is jumping. When it jumps up in the air, the sprite just stops and then goes back down. I don't want it to do that. I want it to move when jumping and if the player wants to move right and left in the middle of the jump, the sprite will do so. Also I need help with platforming but that I will post help for that here after one problem is settled.....
Offline
I did some simple projects in a "Gravity Guy" series that may be helpful to you. There are several, with varying complexity - please feel free to use scripts, ideas, etc. if desired.
Offline
Wow, thanks! This means so much to me! This will officially be my first good platforming game! (I hope there aren't math functions like square root or any of those...) Thanks!
Offline
EdnaC wrote:
I did some simple projects in a "Gravity Guy" series that may be helpful to you. There are several, with varying complexity - please feel free to use scripts, ideas, etc. if desired.
Okay I did everything as your Gravity Guy series game did. (The one where the player explains instructions with two black platforms and showing variables). Okay, I did everything correctly from your scripts but my character will just keep flying up and not come down and I did everything your scripts did. I might have an idea to do with that though....
Offline
Thescratch3 wrote:
EdnaC wrote:
I did some simple projects in a "Gravity Guy" series that may be helpful to you. There are several, with varying complexity - please feel free to use scripts, ideas, etc. if desired.
Okay I did everything as your Gravity Guy series game did. (The one where the player explains instructions with two black platforms and showing variables). Okay, I did everything correctly from your scripts but my character will just keep flying up and not come down and I did everything your scripts did. I might have an idea to do with that though....
Nope, it didn't work. So EdnaC, I will post my project Ball Picker, so can you check that out and download it and see what is wrong with the scripts? I will be very grateful if you do and give a love it.
Offline
EdnaC I figured out the problem with the script! I had the if else inside the first if in Startup, so that is why. Thanks for letting me use your scripts!
Offline
EdnaC, something bad happened AGAIN. Everything is running correctly but it suddenly froze in the middle of moving! About like 7 hours ago everything was fine! But now it is not .
Offline
Thescratch3 wrote:
EdnaC, something bad happened AGAIN. Everything is running correctly but it suddenly froze in the middle of moving! About like 7 hours ago everything was fine! But now it is not
.
Welcome to the wonderful world of debugging!
You may want to try keeping movement, user input and costume management in separate scripts. That way, once you get movement working the way you want, you can slide that script down and out of your way and move on to the next thing.
Offline
jalkan wrote:
kayybee wrote:
Sqrt is square ROOT, by the way.
And that won't help you in platformers, anyway.
As for your glitches, it'd be much easier if we could see your current project, instead of just knowing "it freezes".ROUTE!
Nope, it's root.
Thescratch3 wrote:
Everything is running correctly but it suddenly froze in the middle of moving! About like 7 hours ago everything was fine! But now it is not
Everything froze, or just your character? Are there any specific circumstances that seem to make it stop working?
Offline
Harakou wrote:
jalkan wrote:
kayybee wrote:
Sqrt is square ROOT, by the way.
And that won't help you in platformers, anyway.
As for your glitches, it'd be much easier if we could see your current project, instead of just knowing "it freezes".ROUTE!
Nope, it's root.
Thescratch3 wrote:
Everything is running correctly but it suddenly froze in the middle of moving! About like 7 hours ago everything was fine! But now it is not
Everything froze, or just your character? Are there any specific circumstances that seem to make it stop working?
Well movement, is like when you move the character has trouble moving forward and sorta slides back to the starting position. It is frustrating, how can a thing like that that was working before just suddenly stop with no changes to the scripts?
Offline
EdnaC wrote:
Thescratch3 wrote:
EdnaC, something bad happened AGAIN. Everything is running correctly but it suddenly froze in the middle of moving! About like 7 hours ago everything was fine! But now it is not
.
Welcome to the wonderful world of debugging!
You may want to try keeping movement, user input and costume management in separate scripts. That way, once you get movement working the way you want, you can slide that script down and out of your way and move on to the next thing.
Try to deal with the same movement scripts? What do you mean by user input and costume management?
Offline