Discuss Scratch

QuirkyKittten
Scratcher
100+ posts

The HwS Questions Directory

bigJango wrote:

where is the ghoul sprite? i need it for a project
To get any sprite you need, you can just go to the Scratch Library when you are in a project. To get a Sprite, you can go to the cat logo/icon in the bottom right corner of your project, and click the magnifying glass icon. Then, you should see all of the sprites. Next, at the top left corner of that, you should see a Search Bar. Although, there doesn't seem to be a “Ghoul” sprite. Though, there is a “Ghost” sprite. If you would like to use this sprite, you can simply click that, and then you can code what you would like for the sprite! Hope this helped!

Last edited by QuirkyKittten (Jan. 21, 2020 18:07:08)


I have officially moved to @Paigeri
Jojoisverycool
Scratcher
8 posts

The HwS Questions Directory

When i shoot with Ryu and Dahlsim, the projectile goes only to the right. I'm not sure what to do because I have checked my code and nothing seems to be wrong.
I need some help!

https://scratch.mit.edu/projects/370282783/

There is the project so you maybe help me.

say [Hey!]

say [be better at coding]
Scratch---Cat
Scratcher
1000+ posts

The HwS Questions Directory

ELLlPSE WlTH PEN!

Download Scratch 2.0 | Check your messages | Check my messages
_____________________________________________________________________________________________________

If you want to subscribe to this forum topic, please click the
{} Follow Discussion :: ring sensing
button below this forum post! Thanks!

Pianostar4
Scratcher
1000+ posts

The HwS Questions Directory

I'm sorry if this isn't what you are talking about, but I really need an undo/redo button! Today, I accidentally moved a LONG script too far and it disappeared into the sidebar! All my work-Ruined

Guys! I’m trying to be more active! Sorry!
Oumuamua
Scratcher
1000+ posts

The HwS Questions Directory

All credits for TeamDAB_Official


TeamDAB_Official wrote:

FPS is Frames per Second. Here's a script to find your FPS in game!
Do NOT use a timer for ANYTHING else in your game or this will not work.
Create Variables:
Counter
FPS

when green flag clicked
forever
change [Counter] by (1)
wait (0) secs
if <(timer) > [1]> then
set [FPS] to [Counter]
reset timer
set [Counter] to [0]
end
end


Oumuamua
Scratcher
1000+ posts

The HwS Questions Directory

All credits for cs316735

cs316735 wrote:

You only need one sprite, and these 4 variables:
(x)
(y)
(xOffset)
(RenderY)
…And one list. It can be as big as you want it to be, and each item of the list should be several characters long, and there should be many items like the beginning of the list in a game I am making:
1111141141140000_
1111141141140000_
1111141140000000_
111114114a000000_
1111141140000000_
1111140000000000_
et cetera.
And, here are the scripts, based on what you have in my work-in-progress game.
when green flag clicked
forever
if <key [w v] pressed?> then
change [y v] by (0.3)
end
if <key [a v] pressed?> then
change [x v] by (-0.3)
end
if <key [s v] pressed?> then
change [y v] by (-0.3)
end
if <key [d v] pressed?> then
change [x v] by (0.3)
end
Draw
end
define Draw
set [xOffset v] to [1]
clear
repeat (15)
set [y v] to (RenderY)
set x to ((((32)-(offset))+((-32)*((x) mod (1))))-(240))
end


Oumuamua
Scratcher
1000+ posts

The HwS Questions Directory

All credits for DUYdeptrai2019


DUYdeptrai2019 wrote:

This is my first post so if you find a mistake then reply to this topic

Anyone want a custom counter and not a variable?
if so then follow this
when green flag clicked
hide

And this

define counter
go to x: (Your amount here) y: (Your Amount here)
set [DIGITS v] to [1]
repeat until (length of (Points))
switch costume to [(letter (DIGITS) of [(Points)]) v]
create clone of [myself v]
move (Your amount here) steps
change [DIGITS v] by (1)
end

Also this

when green flag clicked
forever
counter
end

then make your own sprites
and name them to the numbers they are
then your done
and also note that Points varible is your variable of choice.


Oumuamua
Scratcher
1000+ posts

The HwS Questions Directory

To sort a list randomly(not for really long lists, good up to ~100 items)

Last edited by Oumuamua (April 23, 2020 16:33:21)



Oumuamua
Scratcher
1000+ posts

The HwS Questions Directory

This is just a saving time when you want to fill a list with a single character per item





Oumuamua
Scratcher
1000+ posts

The HwS Questions Directory

Last edited by Oumuamua (Nov. 18, 2022 21:14:25)



Oumuamua
Scratcher
1000+ posts

The HwS Questions Directory

?sdneirf ruoy knarp ot tnaw uoy oD



.luftcepser eb ot rebmemer dna ti egnahc esaelP .txet ruoy htiw melborp a si ereht skniht rotceted drow dab eht…mmH


Oumuamua
Scratcher
1000+ posts

The HwS Questions Directory

Is it a number?



Pianostar4
Scratcher
1000+ posts

The HwS Questions Directory

Oumuamua wrote:

Is it a number?


Woah, it actually works! Try 1 and hello.

Guys! I’m trying to be more active! Sorry!
Oumuamua
Scratcher
1000+ posts

The HwS Questions Directory

How to swap two list items?



TUX_OS
Scratcher
500+ posts

The HwS Questions Directory

<moving (10) steps? :: motion>
when this sprite clicked
if <turned cw (15) deegrees? :: motion> then
play sound [Follow Discussion v] until done
Set [my age v] to [9 v]
Ss :: grey
else
think [Foo, world! >:(] for (*) secs
stop [666 v]
end

My favorite thing is translating Emoji language in Russian
12345catc0de
Scratcher
100+ posts

The HwS Questions Directory

i'm making a simulation proje and i cant make the sprite hide

Last edited by 12345catc0de (April 30, 2020 01:39:59)


Catcodeˎˊ-
-M-a-n-g-o-
New to Scratch
12 posts

The HwS Questions Directory

Hi! I need help with making other sprite hide when you click one certain sprite? Anyone know how to do this! I NEED HELP
-M-a-n-g-o-
New to Scratch
12 posts

The HwS Questions Directory

12345catc0de wrote:

i'm making a simulation proje and i cant make the sprite hide


Do you mean when the flag is pressed it wont hide, when a new backdrop switches, or when the sprite is clicked? Because all you need to do is just add
hide
Oumuamua
Scratcher
1000+ posts

The HwS Questions Directory

scratchinghead wrote:

It's a directory for Help With Scripts subforum (HWS).
Here are some helpful topics in scripting. Feel free to suggest new topics that should be added here! I'll be sure to add more links later!





Oumuamua
Scratcher
1000+ posts

The HwS Questions Directory

How to screen wrapping kinda Pac-man does.



Powered by DjangoBB