Discuss Scratch
- silvxrcat
-
Scratcher
500+ posts
Wobble effect
there are 4 parametersmy sprite don't jiggle jiggle, it folds
1. wobble intensity
2. wobble frequency
3. wobble direction
4. wobble offset
and there might be a boolean to control will it automatically wobble
so, the blocks are this:set [wobble intensity v] effect to (10) :: looks // solves number 1and for wobble direction, there is 2 ways
set [wobble speed v] effect to (5) :: looks // solves number 2
set [wobble offset v] effect to (17) :: looks // solves number 4
way 1set [wobble direction v] effect to (120) :: looksway 2set [wobble left-right v] effect to (5) :: looks
set [wobble up-down v] effect to (7) :: looks
// these would replace the "wobble intensity" blocks. you could always use a bit of math to get your direction though
and for the boolean, i think we could do something like this(enable v) automatic wobbling :: looks
(disable v) automatic wobbling :: looks
// a reporter could be placed in the reporter area, and we could discuss whether to use true/false, enable/disable, both, nothing, or something else
another point to discuss is what is the rate that the wobble offsets by a number with a deafult frequency? like offseting by 180/30 per frame?
anyways, i support!!!!
also remember to add this effect into the “change efffect by” block
you'd like to see it wiggle wiggle, for sure
great idea, I like how you're basically suggesting animated wobbles.
- yavuz61035
-
Scratcher
500+ posts
Wobble effect
B.U.M.P
Belt Umbrella's meat pasturization
Last edited by yavuz61035 (July 28, 2022 07:37:52)
- moigam
-
Scratcher
1000+ posts
Wobble effect
there are 4 parametersThis just seems overly complex and probably isn't going to be added, as the four parameters will make the effect list longer and confusing for new Scratchers.
1. wobble intensity
2. wobble frequency
3. wobble direction
4. wobble offset
and there might be a boolean to control will it automatically wobble
so, the blocks are this:set [wobble intensity v] effect to (10) :: looks // solves number 1and for wobble direction, there is 2 ways
set [wobble speed v] effect to (5) :: looks // solves number 2
set [wobble offset v] effect to (17) :: looks // solves number 4
way 1set [wobble direction v] effect to (120) :: looksway 2set [wobble left-right v] effect to (5) :: looks
set [wobble up-down v] effect to (7) :: looks
// these would replace the "wobble intensity" blocks. you could always use a bit of math to get your direction though
and for the boolean, i think we could do something like this(enable v) automatic wobbling :: looks
(disable v) automatic wobbling :: looks
// a reporter could be placed in the reporter area, and we could discuss whether to use true/false, enable/disable, both, nothing, or something else
another point to discuss is what is the rate that the wobble offsets by a number with a deafult frequency? like offseting by 180/30 per frame?
anyways, i support!!!!
also remember to add this effect into the “change efffect by” block
However, this could be added in Snap!. Snap! is a more advanced version of Scratch.
- -Valtren-
-
Scratcher
1000+ posts
Wobble effect
I think you can do this using the whirl effect, but idk how
- Official_GameTeam
-
Scratcher
100+ posts
Wobble effect
I think you can do this using the whirl effect, but idk howonly in limited capacities, with many preparations. this limits make it unfeasable for manys.
- windows-11-pro
-
Scratcher
100+ posts
Wobble effect
think of the pen momentNo Support. this will take up many resources.
I don't think it will take that much resources. It's a simple sine wave, which only requires a tiny bit of code in the code for that block.
set pen color to [your soul]
Last edited by windows-11-pro (Oct. 23, 2022 15:00:12)
- ZefunGR
-
Scratcher
6 posts
Wobble effect
There is a way: so we have a sprite full of horizontal lines representing a part of a costume, like This and this, then we get the code,

when gf clicked :: events hatSorry if it's long, but I guess, thank you.
go to x: (0) y: (0)
switch costume to ( v)
set [Var 2 v] to (0)
set [Speed Var v] to (3)
set [Wave Var v] to (5)
set [X Var v] to (10)
repeat [the number of costumes except the blank one]
next costume
change [Var 2 v] by (1)
create clone of (myself v)
end
forever
change [move v] by (2)
end
when I start as a clone :: controls hat
forever
go to x: (([sin v] of(((move) * (Speed Var)) + ((Var 2) * (Wave Var)))) * (X Var)) y: (0)
end
when I receive [delete clones v] :: events hat
delete this clone

Last edited by ZefunGR (June 5, 2024 00:54:11)










