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
Please check them out, newbs!
+1 post for me
Offline
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 scriptTo 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 scriptI'm completely new to the scratchblocks bb code thing, so I hope I didn't mess it up.
Offline
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
How to make it so that clicking a sprite hides other sprites and shows others?
Offline
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] hideNothing too complicated, right?
Offline