Discuss Scratch

PluuzNouu
Scratcher
2 posts

I have an idea for a block

I think we should have a “Shake screen” block

Like this :
Shake, secs: () strength: ()

The strength is how strong the screen shaking would be
And the secs is how long it would last

MORE SPECIFIC:
It would shake both x and y position of the screen
It shakes all sprites and probably even the backdrop
Strength is how much it shake from the original x and y positions
IF NEEDED: It can be stopped with
 Stop shaking 

Uses (i think):
Audio visualizer
EXPLOSIONS!!!
Loud noise
BEING TRIGGERED\
Earthquake maybe
Huge drops (animation or parkour game)
the rest is…tell me what you think it's useful for?

Last edited by PluuzNouu (March 7, 2017 03:09:23)

NitroCipher
Scratcher
500+ posts

I have an idea for a block

No support

However, I did make an engine that will allow you to use this concept in your projects.

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

when green flag clicked
shake, mili secs: (100) strength: (10) :: custom

define shake, mili secs: (time) strength: (strength)
set [_strength v] to (strength)
set [_time v] to (time)
broadcast [_shake v]

when I receive [_shake v]
nitrocipher ::custom-arg
set [_in_x v] to (x position)
set [_in_y v] to (y position)
set [_in_strength v] to (_strength)
set [_i v] to [0]
repeat (_time)
change [_i v] by (1)
change x by ((_in_strength) * (2))
wait (0) secs
change x by ((_in_strength) * (-2))
set [_in_strength v] to ((_strength) - (((_strength) / (_time)) * (_i)))
end
go to x: (_in_x) y: (_in_y)

You can just copy the code from the project into your backpack, just be sure to give me credit!

Last edited by NitroCipher (March 7, 2017 15:25:05)


I hope my post helped you in some way! Post count: 500+

Current project: [s3Blocks: scratchblocks rewritten for Scratch 3.0] ::#4b4a60 //https://scratch.mit.edu/discuss/topic/290031/ Basically done!
This is my signature identifier “aWFtbml0cm9jaXBoZXI=”
7Snails
Scratcher
100+ posts

I have an idea for a block

eh, it could be easily recreated
jromagnoli
Scratcher
1000+ posts

I have an idea for a block

Although the workaround is lengthy, I feel that this block is too specific for use, yet at the same time ambiguous as to how it would work. Would it shake the stage? Only the sprites? Everything? Only the sprite that it's in?




ROAD TO 10,000 POSTS
████████████████████████████████████████████████████████████████░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 64%










If you can read this, my signature cubeupload has been eaten by an evil kumquat!
hehehe!Mytiptopsecrettopicidentifier!ahjdgggfhjadggahjsahasgdjfsdjfga

miniepicness
Scratcher
1000+ posts

I have an idea for a block

NitroCipher wrote:

No support

However, I did make an engine that will allow you to use this concept in your projects.

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

when green flag clicked
shake, millisecs: (100) strength: (10) :: custom

define shake, millisecs: (time) strength: (strength)
set [_strength v] to (time)
set [_time v] to (strength)
broadcast [_shake v]

when I receive [_shake v]
nitrocipher ::custom-arg
set [_in_x v] to (x position)
set [_in_y v] to (y position)
set [_in_strength v] to (_strength)
set [_i v] to [0]
repeat (_time)
change [_i v] by (1)
change x by ((_in_strength) * (2))
wait (0) secs
change x by ((_in_strength) * (-2))
set [_in_strength v] to ((_strength) - (((_strength) / (_time)) * (_i)))
end
go to x: (_in_x) y: (_in_y)

You can just copy the code from the project into your backpack, just be sure to give me credit!
fixed that for you (milliseconds not mili seconds )

Last edited by miniepicness (March 6, 2017 20:24:28)

Sigton
Scratcher
1000+ posts

I have an idea for a block

NitroCipher wrote:

No support

However, I did make an engine that will allow you to use this concept in your projects.

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

-snip-

You can just copy the code from the project into your backpack, just be sure to give me credit!
Are you meant to be setting the strength to the time and the time to the strength?

Sigton


1a3c5e7g9i
Scratcher
100+ posts

I have an idea for a block

NitroCipher wrote:

No support
Please be nicer in your posts.
————————————
I'm assuming that the entire screen will be shaken. I'm indifferent.


Wao how is that possible





Uh Squidward? Yes Spongebob? You might want to look at this… HOLY SHRIMP! If we don't act now, well, think about how many clams I'll have to cough up JUST to see an extra portion of nick.com… or worse, to see ALL of it in general! *** Reader! This is not a fictional sketch! It actually is, but that's not the point. Learn more at the link that Spongebob left at the first instance of “this”.
poniesareso
Scratcher
100+ posts

I have an idea for a block

I think it's a good idea, but it is not very exact and as other Scratchers said, What would it shake? Also, it can rotate in a series to mimic shaking more specifically such as (you can repeat this how ever many times you want, of course):
turn cw (5) degrees
turn ccw (5) degrees
turn cw (5) degrees
turn ccw (5) degrees

Last edited by poniesareso (March 6, 2017 22:56:48)


Cick dat kumqut!







PluuzNouu
Scratcher
2 posts

I have an idea for a block

jromagnoli wrote:

Although the workaround is lengthy, I feel that this block is too specific for use, yet at the same time ambiguous as to how it would work. Would it shake the stage? Only the sprites? Everything? Only the sprite that it's in?

Everything of course!
duckboycool
Scratcher
1000+ posts

I have an idea for a block

1a3c5e7g9i wrote:

NitroCipher wrote:

No support
Please be nicer in your posts.
You're allowed to say “No support”. He was just stating whether or not he supported.

Anyway, no support since it's just too specific. It could rarely be used.

I used to be active on the forums, but I have mostly moved past Scratch. I still do check my Scratch messages, so if you'd like to talk to me, just leave a comment on my profile. My main project on Scratch was Cookie Clicker, but my newest project is Snake Snake, a game based off of Snake, but with two snakes, and you can play either singleplayer or multiplayer.

NitroCipher
Scratcher
500+ posts

I have an idea for a block

Sigton wrote:

NitroCipher wrote:

No support

However, I did make an engine that will allow you to use this concept in your projects.

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

-snip-

You can just copy the code from the project into your backpack, just be sure to give me credit!
Are you meant to be setting the strength to the time and the time to the strength?

Sigton

No Oh shoot, yep i has wrong, i just fixed the code.

Last edited by NitroCipher (March 7, 2017 15:24:35)


I hope my post helped you in some way! Post count: 500+

Current project: [s3Blocks: scratchblocks rewritten for Scratch 3.0] ::#4b4a60 //https://scratch.mit.edu/discuss/topic/290031/ Basically done!
This is my signature identifier “aWFtbml0cm9jaXBoZXI=”
QuantumSingularity
Scratcher
1000+ posts

I have an idea for a block

I have to agree with jromagnoli. As a block, this feels too specific for use, and too confusing to implement. I guarantee you that it will also cause lag. It makes more sense to import scripts into your game to accommodate screen shaking. Besides, some people might get dizzy. I dunno, some people have seizures from flashing lights….

No support.
tbakare
Scratcher
72 posts

I have an idea for a block

I agree that this block is way too specific. During my time on Scratch, I have never encountered a time when this block would have been useful. Sorry, but this block should not be created. You can easily recreate it though.
when I receive [ Shake v]
repeat (50)
go to original position
point in direction (90 v)
change x by (pick random (5) to (Strength))
change y by (pick random (5) to (Strength))
turn cw (pick random (5) to (Strength)) degrees
wait (0.1) secs
end
Just put this in every sprite and let the fun begin!

Do you want to travel the Solar System? Check out Space Adventure?
Control the Galactic Empire!
Limited Time Winter Competition!
Hurricane Simulator,Turkey Game,Calculator,And More
Also, coming soon: A teaser trailer for FOUR new projects I'm making!
Check out my profile and games! Don't forget to check out Kylo's Shop after checking out all my projects.
awesome5185
Scratcher
1000+ posts

I have an idea for a block

Ok, let's think about how many times you would use this block. Ever. Me? None. Perhaps this could be an effect?

change [Shake v] effect by (25)

The number is how much it shakes and it only activates when activated. So eg:

repeat (100)
change [Shake v] effect by (25)
end

Edit: I realise there's lots of things wrong with this, it's just a concept. But I don't support

Last edited by awesome5185 (March 7, 2017 02:45:31)


Regards,
awesome5185

Featured Studio!
Ask Ouija!
Ask a question and get your answers one. letter. at. a. time. Join now!

; Santa Claus and Mrs Claus wanted to get a devorce. However, being in the north pole, there was no one there to help them do that. So they used a semi colon instead; they are great for seperating two independent clauses.
awesome5185
Scratcher
1000+ posts

I have an idea for a block

QuantumSingularity wrote:

I have to agree with jromagnoli. As a block, this feels too specific for use, and too confusing to implement. I guarantee you that it will also cause lag. It makes more sense to import scripts into your game to accommodate screen shaking. Besides, some people might get dizzy. I dunno, some people have seizures from flashing lights….

No support.

It's called epilepsy.

Regards,
awesome5185

Featured Studio!
Ask Ouija!
Ask a question and get your answers one. letter. at. a. time. Join now!

; Santa Claus and Mrs Claus wanted to get a devorce. However, being in the north pole, there was no one there to help them do that. So they used a semi colon instead; they are great for seperating two independent clauses.
WaffleChurro
Scratcher
100+ posts

I have an idea for a block

No Support

Shaky screens are disorientating and give some people seizures.

Lets ban Minimods together.
awesome5185
Scratcher
1000+ posts

I have an idea for a block

WaffleChurro wrote:

No Support

Shaky screens are disorientating

This is subjective, plus, it doesn't have to be a big shake. To not support because of that seems a bit… petty.

Just my opinion!

Last edited by kaj Today (9:22:3)

Regards,
awesome5185

Featured Studio!
Ask Ouija!
Ask a question and get your answers one. letter. at. a. time. Join now!

; Santa Claus and Mrs Claus wanted to get a devorce. However, being in the north pole, there was no one there to help them do that. So they used a semi colon instead; they are great for seperating two independent clauses.
stickfiregames
Scratcher
1000+ posts

I have an idea for a block

awesome5185 wrote:

WaffleChurro wrote:

No Support

Shaky screens are disorientating and give some people seizures.
This is subjective, plus, it doesn't have to be a big shake. To not support because of that seems a bit… petty.

Just my opinion!
Good job editing out the important part of the post. I think seizures are a valid point, although there are probably other things you can do now that are more likely to cause them.










If you can read this, my signature cubeupload has been eaten by an evil kumquat!




or you just used Inspect Element, you hacker

;
awesome5185
Scratcher
1000+ posts

I have an idea for a block

stickfiregames wrote:

awesome5185 wrote:

WaffleChurro wrote:

No Support

Shaky screens are disorientating and give some people seizures.
This is subjective, plus, it doesn't have to be a big shake. To not support because of that seems a bit… petty.

Just my opinion!
Good job editing out the important part of the post. I think seizures are a valid point, although there are probably other things you can do now that are more likely to cause them.
If this is true, people would have already had them due to the number of *MLG* games on Scratch.

Regards,
awesome5185

Featured Studio!
Ask Ouija!
Ask a question and get your answers one. letter. at. a. time. Join now!

; Santa Claus and Mrs Claus wanted to get a devorce. However, being in the north pole, there was no one there to help them do that. So they used a semi colon instead; they are great for seperating two independent clauses.
WaffleChurro
Scratcher
100+ posts

I have an idea for a block

awesome5185 wrote:

stickfiregames wrote:

awesome5185 wrote:

WaffleChurro wrote:

No Support

Shaky screens are disorientating and give some people seizures.
This is subjective, plus, it doesn't have to be a big shake. To not support because of that seems a bit… petty.

Just my opinion!
Good job editing out the important part of the post. I think seizures are a valid point, although there are probably other things you can do now that are more likely to cause them.
If this is true, people would have already had them due to the number of *MLG* games on Scratch.

Well, color effect and flashy lights could give people epilepsy seizures, so why should we make another block that could do stuff like that? Maybe you have never experienced having/seeing a seizure, and let me tell you it's not nice. I feel that people would just use shaking to annoy or trick people in projects.

Lets ban Minimods together.

Powered by DjangoBB