How to make a 3D PLATFORMER in Scratch

Поділитися
Вставка
  • Опубліковано 27 гру 2024

КОМЕНТАРІ • 563

  • @ggenije
    @ggenije  11 місяців тому +40

    ▶ Make 3D platformer easy: soba.xyz/?gg3d=
    *▶IMPORTANT* on 7:10 place "Block Order" block before "Draw all blocks" inside "Draw" custom block.

    • @granddevelopres
      @granddevelopres 10 місяців тому +1

      i did exact same thing as you did but everything is great except that line are not exactly shaped like your i checked the code 2 time it is same why?

    • @ggenije
      @ggenije  10 місяців тому +2

      @@granddevelopres send the project

    • @pawxgamingmario9813
      @pawxgamingmario9813 10 місяців тому

      Please make a sky landers type game (skylanders graphics)

    • @sambamastaki
      @sambamastaki 10 місяців тому +1

      I'm soo bad at scratch:( every tortaril dont help me

    • @ianbates7364
      @ianbates7364 10 місяців тому

      actually, this does not work for me. The tutorial does not work for me, and this one was the only good one I could find, so I will never be able to make a 3D platformer

  • @zardyfilms3466
    @zardyfilms3466 10 місяців тому +50

    I WAS WAITING FOR THIS TO HAPPEND, FINALLY A 3D GAME TUTORIAL THAT IS NOT RAYCASTING

    • @томни
      @томни 10 місяців тому +5

      Yeah raycasting is just 2d from a first-person perspective, and the ealls are drawn by proximity, and not by their position in world

    • @RADEET.OFFICIAL
      @RADEET.OFFICIAL 10 місяців тому

      True, agreed

    • @gneu1527
      @gneu1527 8 місяців тому

      ​@@томниand raycasting overall looks bad and fake.

    • @efraimthedrummer
      @efraimthedrummer 7 місяців тому

      not for me though! I think raycasting's just fine.

    • @Jonathan-sp9un
      @Jonathan-sp9un 5 місяців тому

      Same here bro, just saw a different guy make a Minecraft like game in scratch and he uses ray casting.

  • @1928Escapes
    @1928Escapes 10 місяців тому +11

    It is good that you encouraged the viewers to experiment with the values, because I think that it is a more effective way of learning how to make better games.

  • @livestories_ai
    @livestories_ai 11 місяців тому +28

    Thanks for having us, @ggenije!
    We are very excited to see the Scratch creators easily building some 3D games on Soba 😼❤

    • @YourBoiUltra
      @YourBoiUltra 10 місяців тому +3

      WTF is soba you mean scratch or do you use a Chinese scratch clone 💀💀💀💀

    • @AxlGamer2022
      @AxlGamer2022 10 місяців тому +5

      @@YourBoiUltra its the sponsor of the video

    • @YourBoiUltra
      @YourBoiUltra 10 місяців тому +2

      @@AxlGamer2022 oh

    • @NaraSherko
      @NaraSherko 10 місяців тому +2

      Bro is a roblox ripoff

    • @jimothy4
      @jimothy4 10 місяців тому

      hey when will there be a spot in early accesses?

  • @Edds-e1z
    @Edds-e1z 2 місяці тому

    Wow, I'm almost done the tutorial, I'm on block types, with no major fixes so far, and I just realized how fast this is. There is no lag whatsoever. This is an amazing tutorial.

  • @Chrome_Cat
    @Chrome_Cat 11 місяців тому +7

    I don't know if the part at 14:30 was there in the version you showed me, but I appreciate that you have encouraged people to learn how it works.

    • @zdravprav9659
      @zdravprav9659 11 місяців тому +1

      It was

    • @M4del1ne
      @M4del1ne 11 місяців тому +1

      holy this is too good to be real

    • @Chrome_Cat
      @Chrome_Cat 10 місяців тому +1

      @@M4del1ne i'm confused

    • @PZSog
      @PZSog 8 місяців тому

      @@Chrome_Cat I think he means that a collab with you and @ggenije is _too good to be real._

  • @andrewnaaden6542
    @andrewnaaden6542 11 місяців тому +12

    Step 1: make 1 new variable
    Step 2: make 1 custom block
    Step 3: add 100 variables, 500 custom blocks, and a level editor, complete with a lighting engine and HD graphics
    Congratulations, you just finish the easiest tutorial ever🤣🤣🤣LOL

  • @TheDudes421
    @TheDudes421 10 місяців тому +2

    This is the first video that shows how to make a 3D Platformer, TYSM ggenije

  • @JacksonAcademy1
    @JacksonAcademy1 11 місяців тому +137

    I clicked on this faster than my grandpa fell down the stairs.

    • @ggenije
      @ggenije  11 місяців тому +45

      You better make a 3D project next 😤

    • @FrostieCereal
      @FrostieCereal 11 місяців тому +10

      💀💀💀

    • @DiegoGameDeveloper
      @DiegoGameDeveloper 10 місяців тому +8

      Nah 💀

    • @EricRyu-b2x
      @EricRyu-b2x 10 місяців тому +4

      💀@@ggenije

    • @sky_trends_and_gaming
      @sky_trends_and_gaming 10 місяців тому +8

      ​@@DiegoGameDeveloperwhen I clicked on translate it was translated to Well!?!? Why did it translate to Well💀

  • @TheActualFBI.
    @TheActualFBI. 10 місяців тому +3

    I have waited for this video for 4 months. Thank you

  • @greenstonegecko
    @greenstonegecko 10 місяців тому +9

    "in the next video we will upgrade our scratch program to make the graphics look like Unreal Engine 5.3"

  • @Lomiej3721
    @Lomiej3721 11 місяців тому +1

    NO WAY THAT WORKS!!! - you just swich costume to small -> set size to 1/0 % -> swich costume to big AND YOU DO NOT HAVE TO CALCULATE WITH THE TRIANGLE'S PROPORTIES IS A TRIANGLE OUTSIDE THE SCREEN. TY :)

  • @devpz
    @devpz 11 місяців тому +6

    This is the tutorial we need

  • @CubicMathTime
    @CubicMathTime 10 місяців тому +2

    This has been a great tutorial so far, but I do believe there's an error. At 6:58 it never shows where to put the custom block "Block order". I figured out that it works fine if you put it right before "Draw all blocks" in the Define Draw block, but that is not shown in the tutorial unless I missed something.

    • @ggenije
      @ggenije  10 місяців тому +1

      I think I forgot it... but yes, it's super obvious what to do, at least.

  • @SuperLlama88888
    @SuperLlama88888 10 місяців тому +3

    Wow! Amazing tutorial, hope this gets some traction!
    Much faster-paced than Griffpatch's tutorials!
    Also congrats on the sponsor!!!

    • @Edds-e1z
      @Edds-e1z 2 місяці тому

      "fast paced" = speed of light

  • @PeterFunk-fy8fk
    @PeterFunk-fy8fk 10 місяців тому +2

    This tutorial was amazing! I wonder how i can add a type of collectable that opens/removes a specific type of block.

  • @TheBackroomsSmiler
    @TheBackroomsSmiler 10 місяців тому +1

    Can you do a tutorial on how to fill the blocks in?

  • @nayz_playz
    @nayz_playz 10 місяців тому +1

    FINALLY, I HAVE BEEN WAITING FOREVER FOR THIS🎉🎉🎉

  • @EricRyu-b2x
    @EricRyu-b2x 10 місяців тому +1

    YES!!!! I finally finished making the platformer.

  • @AxolotlXwing
    @AxolotlXwing 11 місяців тому +3

    This tutorial looks interesting! Trying it out later :D

    • @EricRyu-b2x
      @EricRyu-b2x 10 місяців тому

      I tried it out and there was some mistakes in setting the variables so I fixed it...

  • @maximvmoutput
    @maximvmoutput 10 місяців тому +4

    Bro casually taught us how to make a whole ass 3D platformer 3rd person game with a 2D engine in 15 Minutes. While griffpatch makes a first person game with no jumping and you cant move your head up and down while you can just look left and right and move in 30 minutes

    • @Edds-e1z
      @Edds-e1z 2 місяці тому

      Lat's not forget that griffpatch's tutorials are slow, and this one is faster than a heart attack.

  • @poka26ev2
    @poka26ev2 7 місяців тому

    12:30 , if you’re to messy on paper, use excel, you just need to set the grid into a square

  • @CubicMathTime
    @CubicMathTime 10 місяців тому +1

    How would you make the amount the bounce block bounces proportional to fall height, like the slime block in Minecraft? More specifically I was thinking it would bounce you 8 or 80% of the fall height, whichever is higher.

    • @ggenije
      @ggenije  10 місяців тому +1

      Have you tried to set velocity to velocity×-0.8?
      Uh 😔 you need math. Just try to figure out the mathematical correlation between velocity and max height. It should be velocity squared divided by 2 gravity.
      And after 3 hours of trying to make it, you'll make it thumbs 👍. Ask your
      Physics teacher lol.

    • @CubicMathTime
      @CubicMathTime 10 місяців тому +1

      @@ggenije I tried messing around with it for a pretty long time yesterday, and the code makes sense to me on paper but it doesn't actually work. I was wondering if you could look at it to see what's wrong (I think it has something to do with their being a few frames that the player loses momentum before block type collision is detected) and also just advise me on how to declutter it because I added like 4 variables and 2 custom blocks and I think that's a little overboard. But I don't know how to send the project because it seems like everytime I send a comment with a link UA-cam deletes it.

    • @ggenije
      @ggenije  10 місяців тому +1

      send the scratch project id@@CubicMathTime

    • @ggenije
      @ggenije  10 місяців тому +1

      also you can send the link on my scratch acc@@CubicMathTime

  • @rowankoyich20
    @rowankoyich20 4 місяці тому

    In the video, at 7:58, I create local variables 'c' and 'collision'. But then at 9:16, you said to create those two local variables AGAIN. Are those variables the same? Or did you leave stuff out? HELP

    • @ggenije
      @ggenije  4 місяці тому

      Theyre same

  • @Vanilla_SMP-1
    @Vanilla_SMP-1 10 місяців тому +4

    how to fill the box sides with a color

    • @Milky-Way72
      @Milky-Way72 2 місяці тому

      you need to seperate the cubes into triangles, then fill those triangles to get a filled cube:)

    • @AhmatAga
      @AhmatAga Місяць тому

      @@Milky-Way72 but how i dont understand still you have project about it?

    • @Milky-Way72
      @Milky-Way72 Місяць тому

      @@AhmatAga no, but a simple way is to take the top 3 verts and fill them with colour and take the bottom 3 verts and fill them with colour

  • @UCocEK_4c9ym-eyr5pnVD4tQ
    @UCocEK_4c9ym-eyr5pnVD4tQ 10 місяців тому

    At 8:21 my camera rotation is a bit jumpy, when I press to rotate it keeps jumping back to it's original position momentarily, it also moves to the right a bit when I press the left key and it moves to the left a bit when I press the right key, did I mess up the code or is it my computer?

    • @ggenije
      @ggenije  10 місяців тому

      Check the code

  • @nathangandonn3324
    @nathangandonn3324 10 місяців тому

    I've already created 3d games, but you're 3d is better than mine. Thank you for this tutorial !

  • @Anvika-w6x
    @Anvika-w6x День тому

    Thx for reply, is there a way to fill blocks or change color of type of block (such as ground)?

  • @CubicMathTime
    @CubicMathTime 10 місяців тому +1

    So I have a problem where I just finished the player movement and the problem is with moving backwards and forwards. At certain camera positions, it works normally, but then if you rotate the camera 90 degrees, W and S are reverted in their functionality. If you rotate it at a 45 degree angel, W and S do the same thing as A and D. I've tried troubleshooting by going through all the code that might cause this but I haven't found. What's your advice?

    • @ggenije
      @ggenije  10 місяців тому +1

      Check plus and minus signs on movement , and check do you use sin and cos st correct places , and that you're using correct rotations there (roty)

    • @CubicMathTime
      @CubicMathTime 10 місяців тому +2

      @@ggenije I've already done this at least twice although I could've still missed something, would you be willing to look at my project to see what went wrong?

    • @ggenije
      @ggenije  10 місяців тому +1

      send

    • @CubicMathTime
      @CubicMathTime 10 місяців тому +1

      @@ggenije alright I did actually find something wrong with the Y movement script but that didn't fix the issue so I guess I'll go to earlier sections, so far I've just been looking through the scripts added after the player was created.

    • @CubicMathTime
      @CubicMathTime 10 місяців тому +1

      @@ggenije Wait nevermind I found it it was in the update player script, in the second input of player XZ movement I was subtracting them instead of adding

  • @MrBrineplays_
    @MrBrineplays_ 11 місяців тому +2

    Will you do a tutorial on rendering 3d solid triangles?

    • @ggenije
      @ggenije  11 місяців тому +4

      It's more advanced level, if you want to modify this project, you need first to find someone's else triangle fill, and then instead of lines se triangles, but there is a lot of work.

    • @Chrome_Cat
      @Chrome_Cat 11 місяців тому +3

      This tutorial works fundamentally at the line level, not triangle level, so you'd need to massively change the tutorial project to make it function.

  • @lolimlol-ps9sf
    @lolimlol-ps9sf 5 місяців тому

    Your english makes this video so much better

  • @ZanePro123
    @ZanePro123 10 місяців тому

    When i saw this I was like no way... was always waiting for this tutorial

  • @Itzpikitas602
    @Itzpikitas602 10 місяців тому +5

    In 4:38 meme:
    Someone:you can make 3D game easy🤗
    In reality:

    • @Kevin-k8l2z
      @Kevin-k8l2z 9 місяців тому

      It took me like 5 days to finish the tutorial

    • @Kevin-k8l2z
      @Kevin-k8l2z 9 місяців тому

      @Rosti_GTL1 I’m done the tutorial but I’m not done with even the first update

    • @Kevin-k8l2z
      @Kevin-k8l2z 9 місяців тому

      I uploaded half the update, the other will wait

    • @XeaboYZ
      @XeaboYZ 9 місяців тому

      fr

    • @PZSog
      @PZSog 8 місяців тому +1

      took me 2 full days to finish it

  • @greenowl4176
    @greenowl4176 10 місяців тому +2

    at the part where you make 60 shapes it only makes 3 for me someone pls help

    • @ggenije
      @ggenije  10 місяців тому +2

      Check everything, especially plus and minus usages

    • @PIMG_
      @PIMG_ 10 місяців тому +1

      I'm at the same part with the same issue and I rewatched the video 3 times

    • @greenowl4176
      @greenowl4176 10 місяців тому

      @@PIMG_ yeah idk what the problem is

  • @WitnessOfWaffles
    @WitnessOfWaffles 10 місяців тому +1

    Do you have an article or something to show how to fill in the cubes? I'm using this tutorial to make a fps shooter

    • @ggenije
      @ggenije  10 місяців тому +1

      scratch.mit.edu/studios/32152322/

    • @WitnessOfWaffles
      @WitnessOfWaffles 10 місяців тому

      @@ggenije oh dang I followed mathmathmath from the 2k hours video, I never realized there was another series out there, thank you.

  • @Tetril_Homefiesta
    @Tetril_Homefiesta 11 місяців тому +4

    thanks
    the only tutorial griff patch refuses to make
    his tutorials are good but complex stuff entices me

    • @Kevin-k8l2z
      @Kevin-k8l2z 9 місяців тому

      This is more complex project and it is harder for most beginners which is a large portion of viewers

    • @Tetril_Homefiesta
      @Tetril_Homefiesta 6 місяців тому

      @@Kevin-k8l2z well apart from that
      griffpatches old tutorials arent exactly FOR beginers
      they are hidden to be biginer level
      it teaches biginers to advanced code
      but pros are searching for these types of videos

  • @DHIKSHENSELVAKUMAR
    @DHIKSHENSELVAKUMAR 7 місяців тому +1

    can you make a video on how to add textures. Like grass on normal block and so on. I'm really wanting to do that.

  • @Illumixx-z5q
    @Illumixx-z5q 5 днів тому +1

    Hello, I am here because my pen isn't showing up at all. I made sure to exactly copy the code, even double checked it, yet my screen remains null of pen. Can I have a little help ;-;

    • @Drogohive
      @Drogohive 4 дні тому

      @Illumixx-z5q try making sure your draw sprite is hidden.

    • @Illumixx-z5q
      @Illumixx-z5q 4 дні тому

      @Drogohive thx, but it already is

    • @ggenije
      @ggenije  3 дні тому

      Check screen refresh in custom blocks, and check the order of "erase all" compared to other draw blocks. And just debug it by drawing a few lines manually. If they disappear see why.

    • @adtpro12345
      @adtpro12345 8 годин тому

      @@ggenijeWill you make a video on how to fill the blocks in with color?

  • @yuvrajdhesi6653
    @yuvrajdhesi6653 10 місяців тому

    @ggenije at 9:00 im when i put my update player custom block into my update custom block it just stops the code before the place i put it and i can get it right, ive checked it over three times and even restarted the section, any advice on this?

    • @yuvrajdhesi6653
      @yuvrajdhesi6653 10 місяців тому

      I thinik the problem is that my check player collision script is continues and stops the update block from continuing in my code, thoughts?

    • @ggenije
      @ggenije  10 місяців тому

      Indon't understand you.

  • @WitnessOfWaffles
    @WitnessOfWaffles 10 місяців тому +1

    I'm sorry if there are multiple of these because they are nit showing up on this account or others, but what I'm trying to do is make one of the block types no matter what be on the top layer above everything else, I tried to do this by excluding that block type then drawing that block type last, but it changes the color of the closest object to it to the color of the cube. Do you know how to make that block type be the last thing drawn?

    • @ggenije
      @ggenije  10 місяців тому

      When sorting, check type. If the type is that block, add it to a different list for drawing. Then, when drawing, iterates through two different lists, first regular and second this new list.
      Btw share only the number of project ID instead of while link.

    • @WitnessOfWaffles
      @WitnessOfWaffles 10 місяців тому

      ​@@ggenije I added them to a list, made it so what ever is not that block type is put into the new list as a blank so layer ID would have like 12 items then the new list would have 12 blanks then like 2 of the certain block, but they are not being layered correctly and it's based on what order it was put into the block xyz lists

  • @dragosdimiscayt260
    @dragosdimiscayt260 10 місяців тому +1

    At 8:15 my Camera isnt pointing to the player what should i do?

    • @ggenije
      @ggenije  10 місяців тому +1

      Check all scripts, also give extra attention. Does it use plus or minus signs.

    • @dragosdimiscayt260
      @dragosdimiscayt260 10 місяців тому +1

      @@ggenije Thank you for responding . It still dose not work. Can you say what block is the block that follows the player so i can have extra attention?

    • @ggenije
      @ggenije  10 місяців тому +1

      @@dragosdimiscayt260 ones with "camera" in name.

    • @dragosdimiscayt260
      @dragosdimiscayt260 10 місяців тому

      @@ggenije Thank you very much the problem was in init trigonometry i have put cameraY instead of cameraRotY!

  • @ashleysperling9574
    @ashleysperling9574 2 місяці тому

    I am struggling to think of new block type ideas. I currently have a speed boost block, a falling platform, an enemy block, a reverse gravity block, and a water block. What other block types should I try adding

    • @ggenije
      @ggenije  2 місяці тому

      Coin, enemy ,key and door, moving platform, ice ...

    • @ashleysperling9574
      @ashleysperling9574 2 місяці тому

      @@ggenije Thank you!

  • @NuttyJamesGMD
    @NuttyJamesGMD 10 місяців тому +2

    every day, scratch is getting closer to unity, c, python.

    • @codingpileofdirt
      @codingpileofdirt 10 місяців тому +1

      but even so, most believe we're just *scratching* the surface

    • @Kevin-k8l2z
      @Kevin-k8l2z 9 місяців тому

      @@codingpileofdirtof BSODing PCs editing the largest project

  • @icantthinkofahandleforyoutube
    @icantthinkofahandleforyoutube 8 місяців тому +2

    When I first ran the game the lines weren't showing up then I realized I had accidentally placed a "-" block where a "+" block was supposed to go.
    New Issue: When I swapped "Draw 3D lines" with "Draw Block" nothing appears on screen. I have the "Draw" sprite hidden.

    • @PZSog
      @PZSog 8 місяців тому

      me too once

    • @Edds-e1z
      @Edds-e1z 2 місяці тому

      I'm going really really slow with this, it might take 30 hours, but I'm trying to avoid making a single mistake.

  • @greenowl4176
    @greenowl4176 10 місяців тому +4

    How do you make a block that teleports you?

    • @ggenije
      @ggenije  10 місяців тому +2

      Just make a new block type, teleport block, which changes player collision on touch.

  • @lewisyang8454
    @lewisyang8454 Місяць тому

    Pov, you don't notice a very tiny mistake you've made after completing (I totally didn't change an addition operator with a subtraction😳).
    Also, I've never seen that many inputs in one custom block. Thanks for the cool tutorial!

  • @stavros222
    @stavros222 10 місяців тому

    Man. For me its more chaotic to make a platformer on scratch than actually coding it

  • @ianbates7364
    @ianbates7364 10 місяців тому +2

    Thank you for the tutorial!

  • @spencil-k5k
    @spencil-k5k 9 місяців тому +1

    Is there away to fill in the blocks

    • @Kevin-k8l2z
      @Kevin-k8l2z 9 місяців тому

      Idk just make smaller blocks inside the block you want to fill it
      It probably would tank FPS or not I never tried this

  • @kurniawanoey5730
    @kurniawanoey5730 9 місяців тому +1

    Can you tell me how to make moving block?

  • @BrandonGrant-h3n
    @BrandonGrant-h3n 11 днів тому

    The collision is not working, I checked the scripts only in the update sprit and there all should be right . I just go into the ground when i touch the ground and I slowly go down through the ground. When I jump I just go all the way through the ground and start falling, I only pop out of the ground when I set the jump power about at least at 45. I have no clue why it is not working, pls help.

  • @aliplayz9563
    @aliplayz9563 10 місяців тому

    we need a creator like you

  • @Greeneyes12345_official
    @Greeneyes12345_official 20 днів тому

    8:33 the big platform is at an offset can somebody help me?

  • @kalebisurdad
    @kalebisurdad 2 місяці тому +1

    how do you fill the blocks instead of having the edges

    • @ggenije
      @ggenije  2 місяці тому

      Check codingbio scratch tutorial

  • @samllea1
    @samllea1 11 місяців тому +2

    aint no way you made a tutorial on how to make a 3d platformer in scratch

  • @Bentolamb
    @Bentolamb 10 місяців тому +6

    oh its probably eas- *sees code* WHAT THE- oh but its probably worth it.
    you need more likes man
    this video great!

  • @ajtopia
    @ajtopia 6 місяців тому

    Moving blocks, should I use variables for the coordinates?

  • @RedzonM12024
    @RedzonM12024 10 місяців тому +2

    THANKS BRO also uhh I Shorta found the save for ur account in crystal seeker and Switched your settings today Account save is "debug"

  • @YellowHackerYT
    @YellowHackerYT 19 днів тому

    When I move the CameraRotX and y sliders the code gets messed up. I’ve checked every thing twice and I don’t know what’s happening.

  • @ApolloInvivo
    @ApolloInvivo 7 місяців тому

    how would you go about adding faces and textures?
    and a simpler question: how would you go about having slim platforms that flip when touched? kind of like Super Mario Galaxy 2 Flip-Swap Galaxy style

    • @ggenije
      @ggenije  7 місяців тому +1

      The problem with full faces is sorting. Usually, 3D games use z buffer, which allows perfect sorting. But in scratch, for some reasons you're forced to use the Zvalue painter's algorithm for sorting. This means for example if center of quad you're standing on is closer than center of your player's quads is closer (for case for long quad), the quad top face will be rendered on top of plater making ugly effect.
      Now, as long you design levels in that way, there are no graphical artifacts, and give some Z priority to the player. You would have to use many other optimizations to even make runnable on scratch, like back face culling. Then, you would need to use a triangle fill algorithm (use Azex3d or ChromeCat improved).
      Overall, this is very complex to make, and it's very easy to make it look ugly because of sorting.

    • @ggenije
      @ggenije  7 місяців тому +1

      And for flip swap, isn't it flipping when you jump? Just make player don't collide with either blue or red ones depending on the variable which changes 0 , to 1 depending on jump. Also change the rendering color so player know which one is it.

  • @ashleysperling9574
    @ashleysperling9574 2 місяці тому

    Is it possible to fill in 3D shapes using this method or do you have to use triangles

  • @CubicMathTime
    @CubicMathTime 10 місяців тому +1

    I enough another problem when the player hits to bottom of a block it teleports to the top of the block. Is this supposed to happen or is it something wrong with the collision script? It seems like it doesn't do that in the full game.

    • @ggenije
      @ggenije  10 місяців тому +1

      In collision y there are two outcomes branch, for when velocity is larger than zeronor smaller than zero, try to debug to see is one when velocity is larger than zero even called.

    • @CubicMathTime
      @CubicMathTime 10 місяців тому +1

      @@ggenije wait would this be in collision block or player y movement?

    • @ggenije
      @ggenije  10 місяців тому +1

      @@CubicMathTime player y

    • @CubicMathTime
      @CubicMathTime 10 місяців тому +1

      @@ggenije okay I figured out what was wrong by backpacking the code from your version and I had "getY > PlayerY" where it should have been "getY < PlayerY," now everything in the tutorial is working as intended and I can't wait to start customizing it (it's gonna be like a 3D platformer incremental game thing) but I can't imagine how long it must have taken you to figure out bugs without a visual guide.

    • @ggenije
      @ggenije  10 місяців тому +1

      @@CubicMathTime I'm super skilled at fixing bugs. I've been fixing bugs my whole life.

  • @coolrb99
    @coolrb99 3 місяці тому

    If you guys wanted to have a zoom in and zoom out feature here's a tutorial for it:
    1. Go to the Update sprite
    2. Add a "when i recieve" block
    3. Change the message to be "update"
    4. Add a "wait until" block
    5.Add a "key i pressed?" block (for this i'll use the i key but, you can use whatever key you want)
    6.Create a new variable, name it "CamVal" make for all sprites
    7. Add a if else block
    8. Add a ( 0 > 50 ) block
    9. In the first digit put CamVal and in the other put 0
    10. In the if statement add a "change CamVal by -1" block
    11. In the else statement add a "set CamVal to 0" block
    Congratulations! You finished the zoom in function! Now here's how to do the zoom out function:
    1. Copy the zoom in function
    2. Change the key in "key i pressed?" to "key o pressed?" (Again, use whatever key you want)
    3. Change the "CamVal > 0" block to a "8 > CamVal" (Put whatever number you have as your distance)
    4. Change the "change CamVal by -1" block to 1
    5. Set the "set CamVal to 0 block to 8 (or whatever number you have as your distance)
    Now you need to use CamVal
    1. Find the Update Cam Position Block
    2. For CameraX set 8 to CamVal
    3. For CameraY and CameraZ set -8 to (0 - CamVal)
    Playtest the game and it should work!
    Optional: Add buttons for mobile users

  • @Maki56-e7m
    @Maki56-e7m 7 місяців тому +1

    YO YOU'RE THE ONE THAT MADE Vectoid TD 3D?!

  • @BonnieBoi9000
    @BonnieBoi9000 8 місяців тому

    Dude I’m a FAN of 3d td! Love your content!

  • @AhmedZavianHuq
    @AhmedZavianHuq 10 місяців тому

    Help! i am having a bug in 6:23 the block is purple even though i set pen color to item i of blockcolor

    • @ggenije
      @ggenije  10 місяців тому

      Probably in level sprite you used wrong color (255,0,255) . Or you used wrong kind of set pen color block(there are two ones)

    • @AhmedZavianHuq
      @AhmedZavianHuq 10 місяців тому

      @@ggenije no I used set pen color block

    • @AhmedZavianHuq
      @AhmedZavianHuq 10 місяців тому

      @@ggenije can I share the project

    • @AhmedZavianHuq
      @AhmedZavianHuq 10 місяців тому

      nevermind i found the bug@@ggenije

    • @AhmedZavianHuq
      @AhmedZavianHuq 10 місяців тому

      i was not multiplying the colors@@ggenije

  • @CubicMathTime
    @CubicMathTime 10 місяців тому +1

    At 11:57 it has variables "PlayerStartX" "PlayerStartY" and "PlayerStartZ" but you never said when to create them.

    • @ggenije
      @ggenije  10 місяців тому +1

      11:26 😒

    • @CubicMathTime
      @CubicMathTime 10 місяців тому +1

      @@ggenije Oops sorry

    • @CubicMathTime
      @CubicMathTime 10 місяців тому +1

      @@ggenije ohh I see it makes it more instantaneous

  • @sl0doodles513
    @sl0doodles513 10 місяців тому +1

    hey i have a little issue, i try to remake it (just to understand how 3D works then ill make my own games) but i have a problem with jumping, everytime i try to jump the camera moves up but the player stays at its original position, i cant fix it, i rewatched the video a lot of times but everything is correct, how can i fix this ?

    • @ggenije
      @ggenije  10 місяців тому +2

      It's hard to tell. You probably used wrong variable somewhere.

    • @sl0doodles513
      @sl0doodles513 10 місяців тому +1

      @@ggenije idk i used all the correct one, thats why it confuse me

    • @ggenije
      @ggenije  10 місяців тому +2

      Often mistake is swapping minus and plus.

    • @sl0doodles513
      @sl0doodles513 10 місяців тому +2

      @@ggenije mh alr i understand, i'll check again when i'm free, thx for the help btw (also i love ur content i'm a girl living in france and you made me start coding 3D in scratch so thank you!)

  • @gianlucahall4100
    @gianlucahall4100 5 місяців тому

    When I try to move the cube, it doesn’t move relative the rotation of the camera. For example, if I click w, it moves me in a seemingly random direction compared to the camera. Did I make a mistake while coding something or is that how the game is like. I’m sorry if I’m not explaining good.

  • @velocitygamer-wvu
    @velocitygamer-wvu 9 місяців тому

    WHOA!! I havent even watched the full video and im already baffled! Could you please show a tutorial on how to make a 3D Shooter game in Scratch? Tysm!!

    • @ggenije
      @ggenije  9 місяців тому

      Check 3D tutorial by TheGreenFlash

  • @Skittleplays891
    @Skittleplays891 6 місяців тому

    I have a question, is it possible for player rotation itself(just arround the y axis) to happen with collision or is it too complex?

    • @ggenije
      @ggenije  6 місяців тому

      Collision is not as complex as physics. But one trick is to have a sphere collision player , that way, regardless of what rotation it is , it will stay the same. Aabb vs. aabb is the simplest and the fastest. The next best solution is sphere vs. triangle.

    • @Skittleplays891
      @Skittleplays891 6 місяців тому

      @@ggenije ok thx.

  • @Luted09
    @Luted09 11 місяців тому +2

    bro i got this on my recommended just now what is this timing

  • @helloglass
    @helloglass Місяць тому

    When I run the code, only a maximum of 3 blocks are drawn on the screen, including the player. Undrawn blocks work, but are not visible. What's wrong? I've made it to the BlockTypes chapter.

  • @kevin5897
    @kevin5897 5 місяців тому

    I need some help on the player and camera section, my camera is to zoomed in

    • @kevin5897
      @kevin5897 5 місяців тому

      I fixed this but my player will not phase thru some objects and will phase thru other objects

  • @LiamJensen1
    @LiamJensen1 10 місяців тому +1

    Ur the best this awesome 10/10 tutorial thank u

  • @XeaboYZ
    @XeaboYZ 9 місяців тому

    On 6:03 my new blocks arent showing up. Can you help me

    • @Kevin-k8l2z
      @Kevin-k8l2z 9 місяців тому

      Check your code

    • @Kevin-k8l2z
      @Kevin-k8l2z 9 місяців тому

      Maybe try remaking it

    • @XeaboYZ
      @XeaboYZ 8 місяців тому

      @@Kevin-k8l2z thanks, i found an other way to do it

    • @XeaboYZ
      @XeaboYZ 8 місяців тому

      @@Kevin-k8l2z i did

  • @_IcePlays
    @_IcePlays 10 місяців тому +2

    I need help i can only move when i am in the air and not on the ground

    • @ggenije
      @ggenije  10 місяців тому +1

      Check everything again 🤔

    • @_IcePlays
      @_IcePlays 10 місяців тому

      @@ggenije i did like 4 times

    • @_IcePlays
      @_IcePlays 10 місяців тому +1

      @@ggenije I found the PROBLEM the player is clipping a little bit in the cubes and thats why it doesent move any tips on how i can fix this 🤔

    • @ggenije
      @ggenije  10 місяців тому +2

      send the project@@_IcePlays

    • @MenjiGamer
      @MenjiGamer 10 місяців тому

      I also have this same issue. If you get to fix it, tell me so i can fix it too.

  • @StevoPero
    @StevoPero 10 місяців тому

    The video is really cool for beginners to learn how to make some 3d games. I can make some 3d games with collision and triangle filler but your really better than me.
    I tried this tutorial and it's really cool!

  • @fuzzy2107
    @fuzzy2107 10 місяців тому

    most useful coding video award goes to this video. if you can, can you make a tutorial on how to fill the shapes?

  • @Canarddelice
    @Canarddelice Місяць тому

    I have a bug when setting the camera to the player and it just offsets everything its very strange

  • @TheTBattler
    @TheTBattler 6 місяців тому

    Hi there, I have question. My block is acting weird, it takes a while to find when you start the project and the lines and block become distorted when you get close. I have looked at all of the scripts many times and they are all fine, any tips on what I should do?

    • @ggenije
      @ggenije  6 місяців тому

      A common mistake is swaping minus and plus signs , check that. Also, check variables so you didn't use a wrong variable somewhere.

  • @AyanVerma-g6q
    @AyanVerma-g6q 9 місяців тому

    i have wanted to make this since i saw ur project :)

  • @AsharAqeel-d2y
    @AsharAqeel-d2y 7 місяців тому

    wow this is the best scratcher you know so much you can make anything but how

  • @TheActualFBI.
    @TheActualFBI. 11 місяців тому +1

    At the part with creating sorting algorithm I triple checked my code and it still doesn’t work. Nothing comes up on the screen, NOTHING. Please help me

    • @gustavotonogamerMad
      @gustavotonogamerMad 11 місяців тому +1

      put the "block order" below the block "draw all blocks" in "draw"

    • @ggenije
      @ggenije  11 місяців тому +2

      send the link of project

    • @TheActualFBI.
      @TheActualFBI. 10 місяців тому

      @@gustavotonogamerMadthanks bro!

    • @TheActualFBI.
      @TheActualFBI. 10 місяців тому

      @@ggenijenow that I have your attention. Pls make a video about vectoid 3d td next!

  • @Foxert-Presentations
    @Foxert-Presentations Місяць тому

    Great tutorial! This tutorial was perfect for me! Now I am gonna see if I can make a fps with this or sumthin :D

  • @Tuna.gaming
    @Tuna.gaming 5 місяців тому

    Suddenly when i set Camera Rotation and position and update my player doesnt show up

  • @sganeshram
    @sganeshram 9 місяців тому +1

    are all blocks run with out refresh?

    • @Kevin-k8l2z
      @Kevin-k8l2z 9 місяців тому

      I did that and it worked so yes all blocks are run without screen refresh

    • @sganeshram
      @sganeshram 8 місяців тому

      @@Kevin-k8l2z thanks!

  • @ashleysperling9574
    @ashleysperling9574 2 місяці тому

    I added an enemy that chases the player, but the player doesn't sense collisions with it unless the player is midair. Why is it doing this and how do I solve it?

    • @ggenije
      @ggenije  2 місяці тому

      This is something you'll jave to find out yourself. I can't see why it wouldn't.

  • @paul45-x4r
    @paul45-x4r 2 місяці тому

    I can’t get I to work after 3:06 it just looks like a ball

  • @dmytronesterenko4216
    @dmytronesterenko4216 2 місяці тому

    Can you send the photo at 6:59 but more precise?

    • @dmytronesterenko4216
      @dmytronesterenko4216 2 місяці тому

      please can you send??

    • @ggenije
      @ggenije  2 місяці тому

      More precise? Just set the resoultion to Max and Zoom.

  • @cubes709
    @cubes709 2 місяці тому

    Pro tip: update camera rotation before camera position, i did position first and my game was buggy

  • @PZSog
    @PZSog 8 місяців тому

    Do you have an idea to use a triangle filler to fill the shapes?

    • @ggenije
      @ggenije  8 місяців тому

      Find existing "triangle fill" by searching on Scratch

    • @PZSog
      @PZSog 8 місяців тому

      @@ggenije I know that, i just don't know how to make a script that can fill the shapes...

    • @PZSog
      @PZSog 8 місяців тому

      @@ggenije Nevermind, I figured it out.

  • @GraysonThomas-zv7ie
    @GraysonThomas-zv7ie 3 місяці тому

    How do I fill the blocks in

  • @ashleysperling9574
    @ashleysperling9574 2 місяці тому

    I added a block that reverses the player's gravity, but it ruins the collisions. What should I change to make collisions work in reverse gravity?

    • @ggenije
      @ggenije  2 місяці тому

      Player Y movement is main script to modify. Beside changing side of gravity and moving jump condition of collision side, you also need to set playervely ton9 depending on the collision side.

    • @ashleysperling9574
      @ashleysperling9574 2 місяці тому

      @@ggenije Thank you! It now works.

  • @willnoyes7019
    @willnoyes7019 10 місяців тому +1

    Thanks this is super helpful :)

  • @DLM2010
    @DLM2010 7 місяців тому

    Hey, could you help me with the problem that some lines keep showing even if they arent part of the cube

    • @ggenije
      @ggenije  7 місяців тому +1

      Check is z clipping correct

    • @DLM2010
      @DLM2010 7 місяців тому

      ​@@ggenije it's not z clipping, it happens when i look too much down/up or too much left/right

    • @DLM2010
      @DLM2010 13 днів тому

      ​@@ggenije hey, its me again, sir, could you help me with a little problem? When i move camera towards its limits a bunch o lines concentrate in a unique point, making the 3d all messy, could you help me?

  • @michaelstewart338
    @michaelstewart338 Місяць тому +1

    what if i dont want cubes

  • @granddevelopres
    @granddevelopres 10 місяців тому +1

    how did you wrote and understand these all algorithems

    • @CubicMathTime
      @CubicMathTime 10 місяців тому +1

      probably a lot of time and a genius brain and also copying a lot of stuff from other programming languages

  • @lostforwar5619
    @lostforwar5619 9 місяців тому

    how would you fill the cubes?

    • @Kevin-k8l2z
      @Kevin-k8l2z 9 місяців тому

      You need triangles and to draw them it’s complicated and you also need to optimize as much as possible

  • @BrotherYeeterman
    @BrotherYeeterman 8 місяців тому

    When I change CameraRotX the cube breaks why does that happen?