Seeing the code from the og project and your code i think you improved. Back then you didnt even used cñvariables, now you use a EXTENSIVE use of variables. Great Job!
OMG I had no idea but i played this game when i noticed there was a tree i was like ayo i played that game bro keep up the great work and also i hope you can make more fun games
here's how i would go about recreating the game: I'm thinking something a little bit like vampire survivors, but more forestey theme. this might change later but it's the basic premise. to get started on the code, i would create multiple lists for the enemy X, Y, Type, and Health. this allows me to store up to 200,000 (Two-Hundred-Thousand) different enemies! which is a lot more efficient than duplicating the sprites over and over again like you were doing. Next, i'd make a placeholder sprite just to test how, and if it works. i'd use pen stamping to place all the enemies to the screen, looping through the list and going to all of the positions, drawing them to the screen. for movement, make the enemies change X and Y values using trigonometry. (Point in direction: (arcTan(relative Y / relative X) * {relative Y > 0})) then change the value of X and Y with cos and sin, by the direction, multiplied by how fast you want them to go. after that; collision. this is possibly the hardest and most aggravating part. take what i say with a grain of salt because i might say something wrong here. the amount of collisions you would have to detect is N² (where N is the number of enemies there are.) what we could potentially do is create 2 new lists for chunk X and chunk Y. this splits the possible places where it has to check tenfold. just make each chunk a little bigger than the biggest enemy you have. then check all the chunks around it, including the chunk it's in, for any other enemies. this makes the problem a lot less computationally expensive, because next up is............ ..............COLIDING THEM. once you know two enemies are within range of each other, use the Pythagorean theorem to calculate the distance. (yes i'm talking about the thing you said you'd never ever need irl, yet here we are) the normal Pythagorean theorem goes like this: A²+B²=C² we can modify it to fit our needs. √((enemy1X - enemy2X)²+(enemy1Y - enemy2Y)²) = distance. now we need 2 more variables. NX = dist/EnemyDistX NY = dist/EnemyDistY those two variables give us the cosine, and sine values that we need, to find how to move the enemies out of each other using a single move. if distance < enemy1Scale+enemy2Scale, then we have a collision. otherwise we check the next one. then we find the amount that they intersect, using some more simple math. then multiplying that amount by NX and NY, to find how to move it. divide it by 2, and use the same force, but negatively on the the other enemy. and hopefully the collision works!. that's the base for how it should work after that, you could add more things to the game, like leveling up skills or new weapons. increase waves or new bosses. adding an art style, new enemies, new everything. really anything you can "imagine, program, and share"
wait till you hear about the "if touching" block. But seriously this is very helpful in any non-scratch setting as well. I will definetly write this down.
@@vlliage6409I'm guessing you've never used the pen extension before or aren't experienced enough but the "if touching" block only works for clones and sprites, not with the pen.
Duck duck fox. also you deserve more subscribers. 4k views in one day and almost none of them subscribed. or liked. its really sad. i hope everyone who watch's subscribes and likes in future. i love scratch youtubers so i cant wait for more scratch vids.(and if you do (i've just subbed) your other content)
@TestAccount241 are you dumb? Underrated means it needs more attention since the quality of the video deserves more likes/views whats wrong with u go back to school
To fix the tree problem, did you try adding a wait 0.1 seconds before it spawns the tree, and make sure that the fox starts to move befor the tree spawns?
0:42 Interesting! I re-made my first game a little while ago, and it was quite similar, one player was a bat and the other a ladybug, it was also about one character chasing another.
4:07 I don't know that behavior looks pretty good to me. Maybe if they spawn on a tree then they can start circling around it which would put the illusion of depth on full display as they will constantly switch from being above the tree to below the tree and back again.
heres my way to stop them spawning in places you don't want: make a new sprite with the fox character make sure it has no movement and code and do this code: When Green Flag clicked Random Position (Custom Block) // make sure the custom block runs without screen refresh! Define Random Position (Custom Block) Go to random position If Random Position (Custom Block) // And then make the fox go to this sprite when the game begins! // This works for me :D
I’m currently working on a top down game in scratch in which there is a sprinting mechanic but for some reason up-left and down-right didn’t work while sprinting but walking it works like normal I eventually just decided that I would not have diagonal walking and running. And if anyone knows how to fix the bug I would be appreciated=) and for anyone wondering up right is x:8 y:8 up left is x:-8 y:8 down right is x:8 y:-8 and down left is x:-8 y:-8 and I’ve tried changing the speed
Just make the movement speed a variable, and apply that to the script. So if up pressed, change your by “variable” do that for the four arrow keys, then make a forever loop that says if key E pressed (It doesn’t have to be e) then set “variable” to 12, else set “variable” to 8
Viiperrr Your game is amazing as soon as i saw this video i knew i had to try it. i also beat all fifteen levels and i only died three times because of the night time mode. i think you should continue making scratch games because maybe you could improve even more and you could make harder and better games. im not saying that duck run is a bad game instead its really awesome one day im gonna make a scratch game and become just as good as you are right now. anyways thats all i have to say about duck its a really awesome game so i recommend every one should try this game. Game Name:Duck Run the game also has really cool detail. BYYYEEEEEE
couldn’t of you used. ()= in loop block. Use in tree sprite (Repeat until distance to fox and duck > 90 If distance to fox sprite < 90 go to random place)
You might not see this, but one way to make colison easier is to edot a small piece of the duck and name it, then go over to the fox and put it when touching name to do whatever
2:08 Stamping the sprites would solve this problem, as then you could have the collision be between two proxy sprites that don't need to layer properly. Also, what was the point of layering the sprites if the only sprites on screen will never actually touch?
@@bigfatsnakeviiper At that point in the video I had been under the assumption that there would only ever be one fox and one duck, so I figured that if they ever touched, they would disappear before layering could happen.
The way you made levels isn't a good way, hardcoding it will make it 10x harder. Making a list based editor would take 10 more minutes than what youve spent making the levels but it would be a sprint to make levels after
There was a guy on my school that the Best thing he had made in his entire life on scratch was a rainbow friends static image wen u clicked on it it made diferent poses
yk, to prevent foxes from going inside of trees, you could just force them to move to another randomly generated spot until they aren’t inside of a tree
Hey viiperr. I really like your videos and I’ve watched a couple and they’re really good quality. I haven’t made any videos yet but I’d like to be able to make videos like you and maybe to kickstart that, maybe you and I could do something and make a video together??
Comment: duck
duck
Guys make a chain with your favorite animal, I’ll go first
Cat
@@DiamondCreeper2007 Dog
Fox
duck
"Only SOME Improvements???" That was one of the most epic cut scenes made in a Indie game, let alone a kids website. Dam, you got skills.💯
Seeing the code from the og project and your code i think you improved. Back then you didnt even used cñvariables, now you use a EXTENSIVE use of variables. Great Job!
The coins should be eggs because the chicken is supposed to get the three eggs
No because he's sapost to get them at the end of the game
but then theres 3 levels
OMG I had no idea but i played this game when i noticed there was a tree i was like ayo i played that game bro keep up the great work and also i hope you can make more fun games
Thanks!
I played the game in 2019 lol it wasn't the worst trust me
The ducky is supposed to be smaller than the fox... I'm pretty sure.
The actual worst is move the scratch cat and the letter e simulator
The hardest level by far was level 8. Took me hours
Yeah ikr it sucked
10 was even harderrrrrrrrrrrrrrhrrrrbryrrfhgeycebefthheyghvgrehcgreufrggehfgreyvshufhetgvthetufrvgsfvgrdihfdgyuefffeuycgfuybcfrehugfef😭😭😭😭😭
Yeah it was really hard.
it took me 100+ years to complete, and im not even born yet!
I spent hours on it aswell. I just almost quit the game out of rage
im a unity and unreal dev but this took me back I forgot about scratch
Green scratch?
Yeah. Scratch Addons of idk
here's how i would go about recreating the game:
I'm thinking something a little bit like vampire survivors, but more forestey theme. this might change later but it's the basic premise.
to get started on the code, i would create multiple lists for the enemy X, Y, Type, and Health.
this allows me to store up to 200,000 (Two-Hundred-Thousand) different enemies! which is a lot more efficient than duplicating the sprites over and over again like you were doing.
Next, i'd make a placeholder sprite just to test how, and if it works.
i'd use pen stamping to place all the enemies to the screen, looping through the list and going to all of the positions, drawing them to the screen.
for movement, make the enemies change X and Y values using trigonometry. (Point in direction: (arcTan(relative Y / relative X) * {relative Y > 0}))
then change the value of X and Y with cos and sin, by the direction, multiplied by how fast you want them to go.
after that; collision.
this is possibly the hardest and most aggravating part. take what i say with a grain of salt because i might say something wrong here.
the amount of collisions you would have to detect is N² (where N is the number of enemies there are.)
what we could potentially do is create 2 new lists for chunk X and chunk Y. this splits the possible places where it has to check tenfold.
just make each chunk a little bigger than the biggest enemy you have. then check all the chunks around it, including the chunk it's in, for any other enemies.
this makes the problem a lot less computationally expensive, because next up is............
..............COLIDING THEM.
once you know two enemies are within range of each other, use the Pythagorean theorem to calculate the distance. (yes i'm talking about the thing you said you'd never ever need irl, yet here we are)
the normal Pythagorean theorem goes like this:
A²+B²=C²
we can modify it to fit our needs.
√((enemy1X - enemy2X)²+(enemy1Y - enemy2Y)²) = distance.
now we need 2 more variables.
NX = dist/EnemyDistX
NY = dist/EnemyDistY
those two variables give us the cosine, and sine values that we need, to find how to move the enemies out of each other using a single move.
if distance < enemy1Scale+enemy2Scale, then we have a collision. otherwise we check the next one.
then we find the amount that they intersect, using some more simple math. then multiplying that amount by NX and NY, to find how to move it.
divide it by 2, and use the same force, but negatively on the the other enemy.
and hopefully the collision works!. that's the base for how it should work
after that, you could add more things to the game, like leveling up skills or new weapons. increase waves or new bosses. adding an art style, new enemies, new everything.
really anything you can
"imagine, program, and share"
wait till you hear about the "if touching" block.
But seriously this is very helpful in any non-scratch setting as well. I will definetly write this down.
I feel like this is from chat gpt
@@vlliage6409I'm guessing you've never used the pen extension before or aren't experienced enough but the "if touching" block only works for clones and sprites, not with the pen.
@@SeamusMusicMakerIt probably isn't, most of the equations are fairly simple if you've studied them-maybe around high school level
@@EpicCodingGamer ohhh, I honestly forgot they mention the use of the pen extension 💀 that makes more sense
1K Congrats! You're still underrated ;D
Oh thanks!
Yes.
What does even underrated mean?
@@bigfatsnakeviiperITS 2K NOWWW ALSO IM NEWW❤❤
@@EuAndrew11231 good
if i remade my first game i would be making a 6 year old game about nothing.
if I did, then i would be making an epic bossfight, between a bird person, and a corrupt wizard, in front of a crumbling castle.
Same
I know same
It took me 100000 attempts to beat level 8
just wait till he sees earwigs in the drain by turtlecode9380
congrats on 1k subs
🎉
In only 2 months he got 4K more
Congrats on 1k!
🎉
Cool, it’s fun to play too, although it’s rather short.👍
The ACTUAL worst game in scratch are those copy-paste platformers
Duck duck fox. also you deserve more subscribers. 4k views in one day and almost none of them subscribed. or liked. its really sad. i hope everyone who watch's subscribes and likes in future. i love scratch youtubers so i cant wait for more scratch vids.(and if you do (i've just subbed) your other content)
Thanks!
251k people watch that video and he only has 11k subscribers 😢
EXTREMELY HIGH EDITING QUALITY. Very Underated.
Much appreciated!
*Underrated
@@bigfatsnakeviiperviiper. Underatted means bad. Don't listen to haters. Just move on. Btw I like your content
@@EuAndrew11231 cant tell if ur joking or not
@TestAccount241 are you dumb? Underrated means it needs more attention since the quality of the video deserves more likes/views whats wrong with u go back to school
Awfully sounds like luigi circuit
To fix the tree problem, did you try adding a wait 0.1 seconds before it spawns the tree, and make sure that the fox starts to move befor the tree spawns?
Yeah I did. I thought it would work too but for some reason it didn't 😥
did you try a "wait 0.1 seconds" and then a "wait until not touching fox" and then a second "wait 0.1 seconds"? @@bigfatsnakeviiper
@@bigfatsnakeviiper You could've instead had the foxes keep changing location until they're no longer touching a tree before they spawn.
If you want to see the worst scratch game, you need to see demented scratch cats goofy ahh adventure
0:42 Interesting! I re-made my first game a little while ago, and it was quite similar, one player was a bat and the other a ladybug, it was also about one character chasing another.
0:56 Luckily, I already had animations and both characters could move in 4 directions.
Very cool, makes me think of the good old Pokemon soul silver. You should really get more credit for what you do!
4:07 I don't know that behavior looks pretty good to me. Maybe if they spawn on a tree then they can start circling around it which would put the illusion of depth on full display as they will constantly switch from being above the tree to below the tree and back again.
Level 8 and 10 are too hard
Sir how did you make the green accents in the editor like in the navbar? I really like it.
I use Scratch addons. Here is the link if you are interested. chrome.google.com/webstore/detail/scratch-addons/fbeffbjdlemaoicjdapfpikkikjoneco
Sir how to change it to green because in the addon "editor dark mode and customisable colors", I can only choose presets.
There should be an option to choose your own colors
Thanks sir for the reply, but there is no option to choose other than presets, sorry for bothering.
Underrated youtuber honestly
Love this Video, pls don't stop Posting. This is soooo good
heres my way to stop them spawning in places you don't want:
make a new sprite with the fox character
make sure it has no movement and code
and do this code:
When Green Flag clicked
Random Position (Custom Block)
// make sure the custom block runs without screen refresh!
Define Random Position (Custom Block)
Go to random position
If
Random Position (Custom Block)
// And then make the fox go to this sprite when the game begins!
// This works for me :D
Make a boss fox
why you have 3 fox sprites with same script, instead using clones?
I honestly got kind of lazy, so I just took the easy route.
ok@@bigfatsnakeviiper
Because clones are annoying
@@otomatik48 but its better then million sprites
I’m currently working on a top down game in scratch in which there is a sprinting mechanic but for some reason up-left and down-right didn’t work while sprinting but walking it works like normal I eventually just decided that I would not have diagonal walking and running. And if anyone knows how to fix the bug I would be appreciated=) and for anyone wondering up right is x:8 y:8 up left is x:-8 y:8 down right is x:8 y:-8 and down left is x:-8 y:-8 and I’ve tried changing the speed
Just make the movement speed a variable, and apply that to the script. So if up pressed, change your by “variable” do that for the four arrow keys, then make a forever loop that says if key E pressed (It doesn’t have to be e) then set “variable” to 12, else set “variable” to 8
I Tried It On Scratch And Lvl 8 Was So HARD , I Was Stuck On IT For A WEEK . Also, ALL HAIL THE DUCK
Nice 👍
I have definitely improved
DUDE I PLAYED THIS GAME BEFORE I SAW THIS AND WHEN I SAW THAT DUCK ART MY BALLS DROPED
I like your profile
You should have made the story that the duck walked to a lemon stand
And he said to the man running the stand Hey! Ba ba ba got any grapes
the funny thing is i played this game on scratch before i ever saw this video
Viiperrr Your game is amazing as soon as i saw this video i knew i had to try it. i also beat all fifteen levels and i only died three times because of the night time mode. i think you should continue making scratch games because maybe you could improve even more and you could make harder and better games. im not saying that duck run is a bad game instead its really awesome one day im gonna make a scratch game and become just as good as you are right now. anyways thats all i have to say about duck its a really awesome game so i recommend every one should try this game. Game Name:Duck Run the game also has really cool detail. BYYYEEEEEE
and one more thing i love the backround music and sfx
3:18 killing three birds with a falling tree would work though.... if it's big enough
lol
you really improved.
thanks!
now THIS is not terrible
I’m currently making my first scratch game, and I hope it won’t look like garbage,
4:28 You should've done: change dir +Wait until not touching tree
how do u changr colour of the scratch ui?
Addons
The movement code here is crazy! 0:35 how does he do that!!!!!
couldn’t of you used. ()= in loop block. Use in tree sprite
(Repeat until distance to fox and duck > 90
If distance to fox sprite < 90
go to random place)
I beg you, replace the coins with loafs of bread
You might not see this, but one way to make colison easier is to edot a small piece of the duck and name it, then go over to the fox and put it when touching name to do whatever
0:59 look at the subscribe button when he says subscribe! [it’s just a UA-cam secret]
yooo nice vid
Thanks
I played this in school and I just started watching scratch videos again and I found this one.
You should make a part 2 where Bob's Eggs hatch and the chicks run away so he needs to find his chicks
2:03 📸📸📸📸📸📸📸🦶🦶👣
Posting this video was my biggest mistake
4:11 use a if touching tree go to x y ( just copy the one you had)
How do you get the transparent setting in the costumes also how do you get that pause button
Those two features can be found in Scratch Addons
@@bigfatsnakeviiper what are the addons? And how do I install them
This is the link to the addons. They are a browser extention. chrome.google.com/webstore/detail/scratch-addons/fbeffbjdlemaoicjdapfpikkikjoneco
@@bigfatsnakeviiper thank you :)
@@Another_Reyna Very cool!
I have any suggestions you should make it so with the coins you can get new skins for the characters
which app do u use on pc for editing?
I use CapCut
2:08 Stamping the sprites would solve this problem, as then you could have the collision be between two proxy sprites that don't need to layer properly. Also, what was the point of layering the sprites if the only sprites on screen will never actually touch?
They do touch lol
@@bigfatsnakeviiper At that point in the video I had been under the assumption that there would only ever be one fox and one duck, so I figured that if they ever touched, they would disappear before layering could happen.
4:43
Don’t mind this
What if the music changed for the night levels?
Good idea
OG was honestly good :3
Do a part two but only use your existing knowledge!
Yay 1K subscribers!!
🎉
And a month later, 4K!!!
The subscribe button has a special animation when he said to Subscribe to Viper
0:01 stupid scratch cat in the trash
Have you used tynker?
4:55 Interesting, I just forgot to do that.
i found an inaccuracy with the video! the worst scratch game is something i would make :D
Smash that like button slays
Duck❤
“waste your time, which is exactly what I need”
*proceeds to get a 1 minute unskippable ad*
The worst scratch projects will always be the ones that have done literally nothing. Just click create a new project and upload that.
Which font did you use in your game? Or you've created one in scratch?
I just used the pixel font
Too late, i discovered when i was making a remix of your game: "Duck Run 2.0", but think you anyway
Too late, i discovered when i was making a remix of your game: "Duck Run 2.0", but thank you anyway
Duck. Very good animations
quacks me up! 🦆😂 #Duck
Also I love your Chanel
1:26 Savescreens be like:
Duck
I'm this level today and it was fun !!!!
Hey idk if this a lot to ask but can you make so you can play on mobile
duck
Underrated
you deserve way more subs
The way you made levels isn't a good way, hardcoding it will make it 10x harder. Making a list based editor would take 10 more minutes than what youve spent making the levels but it would be a sprint to make levels after
True lol, next time
I’ve probably got the worst scratch games ngl 😭
This game gives me mobile game vibe
There was a guy on my school that the Best thing he had made in his entire life on scratch was a rainbow friends static image wen u clicked on it it made diferent poses
yk, to prevent foxes from going inside of trees, you could just force them to move to another randomly generated spot until they aren’t inside of a tree
dude you are so underrated
Viperrr can you make a mobile version cause im in mobile
Hey viiperr. I really like your videos and I’ve watched a couple and they’re really good quality. I haven’t made any videos yet but I’d like to be able to make videos like you and maybe to kickstart that, maybe you and I could do something and make a video together??
4:20, If (Touching Block) {your code goes here}
Btw, love your vids!!
wow it did Improve very much
Check the Subscribe button at 0:58
duck
duck
duck
duck!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Duck. It's a wery good video! I loved it!