Discuss Scratch

coding_club_monster
Scratcher
92 posts

plz give me tutorial for nuke explosion in scratch

how do I make a nuke explode in scratch?
here is the code that I used:
when I start as a clone
show
go to x: (pick random (-266) to (266)) y: (286)
wait (1) secs
repeat (40)
change y by (-10)
end
play sound [tnt-ignited v]
if <<(x position) = [36]> and <(y position) = [-64]>> then
play sound [tnt-explosion v]
delete this clone
end
here is my project: click here to see
please answer with scratchblocks

Last edited by coding_club_monster (Feb. 25, 2024 21:26:32)

pythonicKI
Scratcher
100+ posts

plz give me tutorial for nuke explosion in scratch

I'm not going to give you code directly but the
<<(x position) = (36)> and <(y position) = (-64)>>
is almost never going to happen, so you should probably just change that to
<(y position) < (-64)>
forkmanb
Scratcher
100+ posts

plz give me tutorial for nuke explosion in scratch

coding_club_monster wrote:

bignormalsmall
please send this to griffpatch so he could fix it
I think you should take the text testing to another topic. griffpatch is probably not going to fix your problem because he's probably too busy.

also your question's a bit too vague. what exactly do you want the “explosion” to be? do you want an explosion animation? do you want them to disappear? explain.
coding_club_monster
Scratcher
92 posts

plz give me tutorial for nuke explosion in scratch

I want them to explode
coding_club_monster
Scratcher
92 posts

plz give me tutorial for nuke explosion in scratch

pythonicKI wrote:

I'm not going to give you code directly but the
<<(x position) = (36)> and <(y position) = (-64)>>
is almost never going to happen, so you should probably just change that to
<(y position) < (-64)>
CattaMoog
Scratcher
82 posts

plz give me tutorial for nuke explosion in scratch

Here
<[x position] < [64]>
coding_club_monster
Scratcher
92 posts

plz give me tutorial for nuke explosion in scratch

CattaMoog wrote:

Here
<[x position] < [64]>
fixed:
<(x position) < [64]>
coding_club_monster
Scratcher
92 posts

plz give me tutorial for nuke explosion in scratch

geekides-Adam
New Scratcher
1 post

plz give me tutorial for nuke explosion in scratch

bird swag

coding_club_monster
Scratcher
92 posts

plz give me tutorial for nuke explosion in scratch

!“£$%^&*()_)&^£”“£$%^&*()&^£”$%$%^&*&*(^&$%^^&*)+^$!£$^%^&*()+_(*@%)_@@@~~~~)_&*()(+))

Powered by DjangoBB