This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2011-07-05 00:05:47

Thescratch3
Scratcher
Registered: 2011-06-14
Posts: 1000+

Please Help Me

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.


View my projects. Or face The scratch curse! (Get it?)
http://i56.tinypic.com/2cdk8hy.png

Offline

 

#2 2011-07-05 00:26:13

jalkan
Scratcher
Registered: 2009-05-14
Posts: 25

Re: Please Help Me

sqrt is square route

Offline

 

#3 2011-07-05 01:17:23

kayybee
Scratcher
Registered: 2009-12-07
Posts: 1000+

Re: Please Help Me

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

Offline

 

#4 2011-07-05 01:20:40

Thescratch3
Scratcher
Registered: 2011-06-14
Posts: 1000+

Re: Please Help Me

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


View my projects. Or face The scratch curse! (Get it?)
http://i56.tinypic.com/2cdk8hy.png

Offline

 

#5 2011-07-05 01:34:47

Thescratch3
Scratcher
Registered: 2011-06-14
Posts: 1000+

Re: Please Help Me

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


View my projects. Or face The scratch curse! (Get it?)
http://i56.tinypic.com/2cdk8hy.png

Offline

 

#6 2011-07-05 08:11:32

EdnaC
Scratcher
Registered: 2007-08-28
Posts: 100+

Re: Please Help Me

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

 

#7 2011-07-05 13:07:29

Thescratch3
Scratcher
Registered: 2011-06-14
Posts: 1000+

Re: Please Help Me

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!  big_smile


View my projects. Or face The scratch curse! (Get it?)
http://i56.tinypic.com/2cdk8hy.png

Offline

 

#8 2011-07-05 14:53:36

Thescratch3
Scratcher
Registered: 2011-06-14
Posts: 1000+

Re: Please Help Me

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


View my projects. Or face The scratch curse! (Get it?)
http://i56.tinypic.com/2cdk8hy.png

Offline

 

#9 2011-07-05 14:58:51

Thescratch3
Scratcher
Registered: 2011-06-14
Posts: 1000+

Re: Please Help Me

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.


View my projects. Or face The scratch curse! (Get it?)
http://i56.tinypic.com/2cdk8hy.png

Offline

 

#10 2011-07-05 20:23:41

Thescratch3
Scratcher
Registered: 2011-06-14
Posts: 1000+

Re: Please Help Me

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!


View my projects. Or face The scratch curse! (Get it?)
http://i56.tinypic.com/2cdk8hy.png

Offline

 

#11 2011-07-06 01:48:38

Thescratch3
Scratcher
Registered: 2011-06-14
Posts: 1000+

Re: Please Help Me

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


View my projects. Or face The scratch curse! (Get it?)
http://i56.tinypic.com/2cdk8hy.png

Offline

 

#12 2011-07-06 03:06:11

jalkan
Scratcher
Registered: 2009-05-14
Posts: 25

Re: Please Help Me

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!

Offline

 

#13 2011-07-06 09:02:14

EdnaC
Scratcher
Registered: 2007-08-28
Posts: 100+

Re: Please Help Me

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

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

 

#14 2011-07-06 10:28:46

Harakou
Community Moderator
Registered: 2009-10-11
Posts: 1000+

Re: Please Help Me

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?


http://www.blocks.scratchr.org/API.php?action=random&return=image&link1=http://i.imgur.com/OZn2RD3.png&link2=http://i.imgur.com/duzaGTB.png&link3=http://i.imgur.com/CrDGvvZ.png&link4=http://i.imgur.com/POEpQyZ.png&link5=http://i.imgur.com/ZKJF8ac.png

Offline

 

#15 2011-07-06 23:19:50

Thescratch3
Scratcher
Registered: 2011-06-14
Posts: 1000+

Re: Please Help Me

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?


View my projects. Or face The scratch curse! (Get it?)
http://i56.tinypic.com/2cdk8hy.png

Offline

 

#16 2011-07-06 23:23:27

Thescratch3
Scratcher
Registered: 2011-06-14
Posts: 1000+

Re: Please Help Me

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

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?


View my projects. Or face The scratch curse! (Get it?)
http://i56.tinypic.com/2cdk8hy.png

Offline

 

Board footer