Discuss Scratch

davei21
New Scratcher
2 posts

How to create a level

How do you create a level?
TheHockeyist
Scratcher
1000+ posts

How to create a level

It depends on what type of game you're doing. Can you give us more information?

Last edited by TheHockeyist (Aug. 14, 2014 23:11:14)

limyee
Scratcher
34 posts

How to create a level

I'm new, like you, so I might not be of much help and I might be wrong. From what I've figured out, you could do this to create different difficulties:

whenclickedswitchbackdroptoLevel selection screen

Just make a background for the screen.

whenclickedforeveriftouchingmouse-pointer?thenbroadcastleveleasyhideswitchbackdroptogamebackgroundwait1secs

Use this on a sprite of the word easy. Do the same thing on different levels except with different messages. Make a different background for the actual game.

whenIreceiveleveleasyshowglide1secstox:0y:0whenIreceivelevelmediumshowgotox:0y:0
Then you can make different things for each level. See above for an example.
davei21
New Scratcher
2 posts

How to create a level

Thank you!!!!! And the game is like a cube game.
limyee
Scratcher
34 posts

How to create a level

davei21 wrote:

Thank you!!!!! And the game is like a cube game.

You're welcome! Happy to help.

Also, you can use this block:

whenthisspriteclicked

If you want it to be when the sprite is clicked rather than when you roll your mouse over it. I was a bit tired yesterday…
herobrineawsomeness
Scratcher
11 posts

How to create a level

how to make a level.

SPRITEwhenclickedswitchbackdroptolevel1gotox:0y:0whenclickedforeverifkeyup arrowpressed?thenchangeyby50wait0.1secsglide1secstox:0y:0ifkeyleft arrowpressed?thenmove-1stepsifkeyright arrowpressed?thenmove1stepsiftouchingcolor?thenbroadcastnext levelBACKDROPwhenIreceivenext levelnextbackdropSPRITEwhenclickedforeveriftouchingcolor?ortouchingcolor?thenchangeyby1whenclickedforeverifnottouchingcolor?ortouchingcolor?thenchangeyby-1

herobrineawsomeness
Scratcher
11 posts

How to create a level

limyee wrote:

I'm new, like you, so I might not be of much help and I might be wrong. From what I've figured out, you could do this to create different difficulties:

whenclickedswitchbackdroptoLevel selection screen

Just make a background for the screen.

whenclickedforeveriftouchingmouse-pointer?thenbroadcastleveleasyhideswitchbackdroptogamebackgroundwait1secs

Use this on a sprite of the word easy. Do the same thing on different levels except with different messages. Make a different background for the actual game.

whenIreceiveleveleasyshowglide1secstox:0y:0whenIreceivelevelmediumshowgotox:0y:0
Then you can make different things for each level. See above for an example.
i did mine diffrent then that.

Last edited by herobrineawsomeness (Aug. 15, 2014 14:27:30)

stewiemime
Scratcher
21 posts

How to create a level

If you're doing some sort of platformer you could make the goal to get to other side of the screen. It's a lot simpler than broadcasting a message every time. Put this on the sprite you're controlling

whenclickedswitchbackdroptolevel1

whenclickedforeverifxposition> 230thennextbackdrop

if you wanted to change the level when you touch something you could swap the
xposition> 230
for
touchingnext level sprite?
or
touchingcolor?

Last edited by stewiemime (Aug. 15, 2014 14:51:38)

limyee
Scratcher
34 posts

How to create a level

herobrineawsomeness wrote:

i did mine diffrent then that.

Yeah, I saw that. The OP didn't say whether he wanted to have a choose level screen where you (obviously) choose what level/difficulty you want or once you finish one level you move to the next.

stewiemime wrote:

If you're doing some sort of platformer you could make the goal to get to other side of the screen. It's a lot simpler than broadcasting a message every time. Put this on the sprite you're controlling

whenclickedswitchbackdroptolevel1

whenclickedforeverifxposition> 230thennextbackdrop

if you wanted to change the level when you touch something you could swap the
xposition> 230
for
touchingnext level sprite?
or
touchingcolor?

That works as well.
I_LIKE_YO_SCRATCH
Scratcher
26 posts

How to create a level

If you want to make a scrolling level, do this for the platforms:
whenclickedforevergotox:XScrolly:-20ifxposition=250thenhideelseifxposition=-245thenhideelseshow
and this for the player:
whenclickedforeverifkeyleft arrowpressed?thenchangeX Scrollby5ifkeyright arrowpressed?thenchangeX Scrollby-5therestofthelevelstufflikethegravity
cmathew123
Scratcher
2 posts

How to create a level

Guys that's not how I want. Can you make a ping pong game

I_LIKE_YO_SCRATCH wrote:

If you want to make a scrolling level, do this for the platforms:
whenclickedforevergotox:XScrolly:-20ifxposition=250thenhideelseifxposition=-245thenhideelseshow
and this for the player:
whenclickedforeverifkeyleft arrowpressed?thenchangeX Scrollby5ifkeyright arrowpressed?thenchangeX Scrollby-5therestofthelevelstufflikethegravity
MeIzAwezomeDede
Scratcher
1000+ posts

How to create a level

cmathew123 wrote:

Guys that's not how I want. Can you make a ping pong game -snip-
It's not how you want because you need to make your own topic stating what you need help with. Plus, please don't post on older topics
GachaN0nsense
Scratcher
500+ posts

How to create a level

cmathew123 wrote:

Guys that's not how I want. Can you make a ping pong game

I_LIKE_YO_SCRATCH wrote:

If you want to make a scrolling level, do this for the platforms:
whenclickedforevergotox:XScrolly:-20ifxposition=250thenhideelseifxposition=-245thenhideelseshow
and this for the player:
whenclickedforeverifkeyleft arrowpressed?thenchangeX Scrollby5ifkeyright arrowpressed?thenchangeX Scrollby-5therestofthelevelstufflikethegravity
Don't necropost. Also go to Help With Scripts for scripting help and stuff.

Powered by DjangoBB