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

#1 2012-11-06 20:48:50

mathfreak231
Scratcher
Registered: 2012-10-24
Posts: 80

Look at my lessons for new scratchers!

They tell how to use the blocks and I hope you can put them to good use, my projects don't get very good views always  sad

Please check them out, newbs!

+1 post for me


~This sig is false~
I'm on teh wiki!

Offline

 

#2 2012-11-10 10:48:07

Atthos
New Scratcher
Registered: 2012-11-03
Posts: 1

Re: Look at my lessons for new scratchers!

could you help me? I am making a game in which the boss must only die after 5 hits. How can I do that?

Offline

 

#3 2012-11-10 13:29:01

coolcat21
New Scratcher
Registered: 2012-11-10
Posts: 1

Re: Look at my lessons for new scratchers!

how do i make a my first prodject

Offline

 

#4 2012-11-10 14:34:06

ZorchyGroxFox
Scratcher
Registered: 2012-11-06
Posts: 14

Re: Look at my lessons for new scratchers!

Atthos wrote:

could you help me? I am making a game in which the boss must only die after 5 hits. How can I do that?

There's a number of ways to do this, but I'd do it like this:

when gf clicked
set [bosshealth v] to (5) // make a variable for the boss's health
clear graphic effects
show
forever
 if <touching [projectile v]?> // whatever the sprite for the projectile is
 change [bosshealth v] by (-1)
 wait until <not <touching [projectile v]?> > // this is to make it so that each shot only hits once
 end
 if <(bosshealth) = (0)> 
repeat (10) // modify this death script to suit you
change [ghost v] effect by (10)
change [brightness v] effect by (-10)
end
hide
stop script
To aid smoothness, you might want to break up the death and projectile sensing bits into separate scripts, like this:

when gf clicked
set [bosshealth v] to (5)
clear graphic effects
show
forever
 if <touching [projectile v]?>
 change [bosshealth v] by (-1)
 wait until <not <touching [projectile v]?> >
 end
 if <(bosshealth) = (0)> // this will stop the script when the boss dies
 stop script
 end
end
when gf clicked
forever
if <(bosshealth) = (0)> 
repeat (10)
change [ghost v] effect by (10)
change [brightness v] effect by (-10)
end
hide
stop script
I'm completely new to the scratchblocks bb code thing, so I hope I didn't mess it up.
Anyway, I hope this helps.

Offline

 

#5 2012-11-10 14:39:48

ZorchyGroxFox
Scratcher
Registered: 2012-11-06
Posts: 14

Re: Look at my lessons for new scratchers!

coolcat21 wrote:

how do i make a my first prodject

Scratch files are called Projects, so building something in Scratch is making a project. To share a project, open it in Scratch and click the "Share" menu and select "Share This Project Online".
(If you don't have Scratch yet, you can download it from that little blue bar at the very bottom of this website)

Offline

 

#6 2012-11-10 18:57:01

betterplayer
New Scratcher
Registered: 2012-10-20
Posts: 10

Re: Look at my lessons for new scratchers!

How to make it so that clicking a sprite hides other sprites and shows others?

Offline

 

#7 2012-11-10 22:50:06

ZorchyGroxFox
Scratcher
Registered: 2012-11-06
Posts: 14

Re: Look at my lessons for new scratchers!

betterplayer wrote:

How to make it so that clicking a sprite hides other sprites and shows others?

Like this...

For the sprite you click...

when [sprite1] clicked
broadcast [ping v] // whatever message you want here
...for the sprites to show...
when I receive [ping v]
show
...and for the sprites to hide.
when I receive [ping v]
hide
Nothing too complicated, right?  big_smile

Offline

 

Board footer