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

#1 2011-10-23 14:49:08

saadqamer
New Scratcher
Registered: 2011-10-22
Posts: 10

Platform Game, Help Please

well i have this game that im trying to turn into a platform game its basically like a version of sonic and all that but i used shadow and i have alot of GIFs so when he runs he has different costumes when he attacks he has different costumes and so on. i have a background and i have stage and 1 platform where the guy stands on. there have been alot of problems with this thing that i havt fixed but i found loupols i guess. one aspect was that i wanted the player sprite to jump as like any other platform game and i also wanted him to fall if he wasnt standing on a platform so if he's like in mid-air he should fall to death. the problem was i made a script for hiim jumping but i realized when he jumps he is not touching a platform and because of the other script he falls because he isnt touching the platform, so thats very frustrating. and even if i take out the script of him falling then the sprite can basically move anywhere and everywhere without falling (not really any way of losing). another problem i have is basically i want him to jump from platform to platform, pretty typical. so how would i get him to do that? because right now  all i have is him being able to do some running and atacking on one platform but when i try to get onto another he just falls. some help would be greatly appreciated, btw im not using any like velocity x, velocity y scripts.

Offline

 

#2 2011-10-23 14:54:13

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

Re: Platform Game, Help Please

I have no idea what you just posted. Upload your project and clarify your problem and please use correct grammar, capitalization, and spelling.

Last edited by Thescratch3 (2011-10-23 14:54:32)


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

Offline

 

#3 2011-10-23 14:59:49

henley
Scratcher
Registered: 2008-06-21
Posts: 1000+

Re: Platform Game, Help Please

saadqamer wrote:

well i have this game that im trying to turn into a platform game its basically like a version of sonic and all that but i used shadow and i have alot of GIFs so when he runs he has different costumes when he attacks he has different costumes and so on. i have a background and i have stage and 1 platform where the guy stands on. there have been alot of problems with this thing that i havt fixed but i found loupols i guess. one aspect was that i wanted the player sprite to jump as like any other platform game and i also wanted him to fall if he wasnt standing on a platform so if he's like in mid-air he should fall to death. the problem was i made a script for hiim jumping but i realized when he jumps he is not touching a platform and because of the other script he falls because he isnt touching the platform, so thats very frustrating. and even if i take out the script of him falling then the sprite can basically move anywhere and everywhere without falling (not really any way of losing). another problem i have is basically i want him to jump from platform to platform, pretty typical. so how would i get him to do that? because right now  all i have is him being able to do some running and atacking on one platform but when i try to get onto another he just falls. some help would be greatly appreciated, btw im not using any like velocity x, velocity y scripts.

I'll be able to work better if you upload the project and I take a look at the scripts.


"I've worked so hard for you and you give me nothing in return. Do you need help... Or do I?"

Offline

 

#4 2011-10-23 15:20:50

saadqamer
New Scratcher
Registered: 2011-10-22
Posts: 10

Re: Platform Game, Help Please

okay thankyou, i will warn you that it is very basic and sloppy because im new :$...by the way how do upload projects, sorry im new :$

Offline

 

#5 2011-10-23 15:32:25

saadqamer
New Scratcher
Registered: 2011-10-22
Posts: 10

Re: Platform Game, Help Please

okay i put it on my profile so if you can look at it and help me that would be greatly appreciated

Offline

 

#6 2011-10-23 15:37:31

saadqamer
New Scratcher
Registered: 2011-10-22
Posts: 10

Re: Platform Game, Help Please

http://scratch.mit.edu/projects/saadqamer/2099961
thats the link

Offline

 

#7 2011-10-23 15:55:41

melikecheese
Scratcher
Registered: 2010-06-09
Posts: 500+

Re: Platform Game, Help Please

Make a variable called "Jumping?" and change the jumping script to this:
http://i53.tinypic.com/dcy5ph.png

Then, add these parts to the top script in sprite 1:
http://i56.tinypic.com/2jcyhc8.png


http://i51.tinypic.com/987rb5.jpg
I am Dave! Yognaught.

Offline

 

#8 2011-10-23 16:04:52

saadqamer
New Scratcher
Registered: 2011-10-22
Posts: 10

Re: Platform Game, Help Please

alright i'll give it a shot thanks  smile

Offline

 

#9 2011-10-23 16:13:19

saadqamer
New Scratcher
Registered: 2011-10-22
Posts: 10

Re: Platform Game, Help Please

It worked!!!! thanks melikecheese!!!!!! could you please explain to me how my sprite can go on other platforms? i wanted to add that feature in  smile

Offline

 

#10 2011-10-23 16:25:21

saadqamer
New Scratcher
Registered: 2011-10-22
Posts: 10

Re: Platform Game, Help Please

Because right now if i want the shadow sprite to jump on a red platform like if i just make a red rectangle above the other one and i want the sprite to jump from one to the other it will just jump but nothing will happen when it touches the other red rectangle it justs reacts as if nothing was there

Offline

 

#11 2011-10-23 16:42:49

melikecheese
Scratcher
Registered: 2010-06-09
Posts: 500+

Re: Platform Game, Help Please

saadqamer wrote:

Because right now if i want the shadow sprite to jump on a red platform like if i just make a red rectangle above the other one and i want the sprite to jump from one to the other it will just jump but nothing will happen when it touches the other red rectangle it justs reacts as if nothing was there

That's because your jumping script tells the sprite to go up a certain amount, then go down and then check for red. To change this, you'll have to make something a bit more complicated and you will have to change all your falling scripts.

Last edited by melikecheese (2011-10-23 16:45:47)


http://i51.tinypic.com/987rb5.jpg
I am Dave! Yognaught.

Offline

 

#12 2011-10-23 16:49:13

saadqamer
New Scratcher
Registered: 2011-10-22
Posts: 10

Re: Platform Game, Help Please

could you  please show me the scripts that i would have to make that are as you say a bit more complicated. ill be willing to change all the falling scripts and any other things that i need to change to make the sprite land on the other platforms  smile

Offline

 

#13 2011-10-23 17:29:07

melikecheese
Scratcher
Registered: 2010-06-09
Posts: 500+

Re: Platform Game, Help Please

saadqamer wrote:

could you  please show me the scripts that i would have to make that are as you say a bit more complicated. ill be willing to change all the falling scripts and any other things that i need to change to make the sprite land on the other platforms  smile

http://www.scratch.mit.edu/projects/tes … se/2100134
That is what I've done but now the falling looks really strange...

EDIT: Wait, that doesn't work. I'll have another look at it tomorrow.
EDIT2: Fixed it  tongue

Last edited by melikecheese (2011-10-23 17:44:34)


http://i51.tinypic.com/987rb5.jpg
I am Dave! Yognaught.

Offline

 

#14 2011-10-23 20:04:35

saadqamer
New Scratcher
Registered: 2011-10-22
Posts: 10

Re: Platform Game, Help Please

omg thanks bro, this helped alot, the falling thing would be cool but whatever some sacrifices have to be made to make the game work  smile  but thankyou very much!  smile

Offline

 

#15 2011-10-23 20:09:10

saadqamer
New Scratcher
Registered: 2011-10-22
Posts: 10

Re: Platform Game, Help Please

would it be a problem if i added a costume change when shadow jumps?

Offline

 

#16 2011-11-08 22:55:32

Bentleygarvin
Scratcher
Registered: 2011-10-13
Posts: 1

Re: Platform Game, Help Please

here is another cool script that might help you <when green flag clicked><forever><if><<  <not>  >><touching color[ red<change y by( -5<if><touching color[ red<change y by( 5

Offline

 

#17 2011-11-12 00:08:32

unit057
New Scratcher
Registered: 2011-09-29
Posts: 2

Re: Platform Game, Help Please

Try combing you work with mine at http://scratch.mit.edu/projects/unit057/2121909

Offline

 

#18 2011-11-13 12:06:25

manoz
New Scratcher
Registered: 2011-11-13
Posts: 13

Re: Platform Game, Help Please

Hey all, u all seem like you know a lot about scratch, so could you look in the Show and Tell forum and help me out. Thanks

Offline

 

#19 2011-12-05 19:42:46

nicolasss
New Scratcher
Registered: 2011-12-05
Posts: 2

Re: Platform Game, Help Please

how you do to do that the picture stand in a plataform??

Offline

 

#20 2011-12-07 16:24:11

DigiTechs
Scratcher
Registered: 2011-04-30
Posts: 500+

Re: Platform Game, Help Please

melikecheese wrote:

Make a variable called "Jumping?" and change the jumping script to this:
http://i53.tinypic.com/dcy5ph.png

Then, add these parts to the top script in sprite 1:
http://i56.tinypic.com/2jcyhc8.png

But, wouldn't that make the sonic character look like he's falling forever?


I'm back.
Maybe.

Offline

 

#21 2011-12-07 22:29:53

XOuter
New Scratcher
Registered: 2011-12-04
Posts: 20

Re: Platform Game, Help Please

The easiest way would be X and Y velocity, so I'm going to attempt to teach you how those work. Velocity is just speed in a direction. So y velocity is how fast your going up if the number is positive, or how fast your going down if the number is negative. X velocity is how fast your going right if positive or how fast your going left if negative. Tell me if you understand this so far.

Offline

 

Board footer