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

#1 2010-03-19 15:06:46

Pitazzix
Scratcher
Registered: 2010-01-30
Posts: 3

Making level Difficulties

Hey guys! I've made a scratch game

http://scratch.mit.edu/projects/Pitazzix/867330

but as you can see there is only one set difficulty, I know i'm going to need a variable to make 3 different difficulties (easy, normal, hard) but i just cant work out how to do it. Please can you help me because i've been at it for hours now!

Thanks!

Offline

 

#2 2010-03-19 15:15:25

cds56
Scratcher
Registered: 2008-05-02
Posts: 500+

Re: Making level Difficulties

Make sure that the variable is like,

When "Difficulty_hard" clicked:
set difficulty to 3

When "Difficulty_med" clicked:
set difficulty to 2

When "difficulty_easy" clicked:
set difficulty to 1


And change the speed of stuff to like,

set speed to difficulty * base_speed

or something like that..


http://img192.imageshack.us/img192/909/meowdevlogo.pnghttp://i32.tinypic.com/pucti.png

Offline

 

#3 2010-03-19 15:34:40

Pitazzix
Scratcher
Registered: 2010-01-30
Posts: 3

Re: Making level Difficulties

sorry i dont get it :S

Offline

 

#4 2010-03-20 06:57:21

MaxtheWeirdo
Scratcher
Registered: 2010-03-18
Posts: 500+

Re: Making level Difficulties

This is how I would do it:
[blocks] <when green flag clicked>
<if> <( <{ difficulty }> <=> 3 )>
<broadcast[ Really Hard]
<stop script> [/blocks]

[blocks] <when I receive[ Really Hard]
<switch to costume[ Hard ]<stop script> [/blocks]

I would have set it so if the player touches red, they get hurt. And the different costumes would have different amounts of red.


My website. Hall Crawler My Awesome OS
It's just marketing, guys! Nothing sinister!

Offline

 

#5 2010-03-20 07:53:23

Pitazzix
Scratcher
Registered: 2010-01-30
Posts: 3

Re: Making level Difficulties

they don't get hurt as such just looses a point, could somebody make like a really simple demo of difficulty selecting because I cant work it out!

Thanks!

Offline

 

Board footer