How to make a platform game in windows form and c# in visual studio

Поделиться
HTML-код
  • Опубликовано: 24 авг 2024
  • Written tutorial - www.mooict.com...
    Note - This tutorial is slightly different than the written tutorial as I have added enemies and moving platforms to it.
    In this tutorial we will make a platform game using windows form, c# in visual studio. this tutorial took me a while to figure out but it was worth it in the end. It has platforms you can stand on and jump to, it has horizontally and vertically moving platforms.
    We are using labels, picture boxes and timer to make this game work. We haven't used any third party libraries or classes to run the game its plain simple windows form. We make use of the standard components by making something fun inside of it also we make use of the events inside of windows form to respond to the user inputs and we use the main timer event to work as a main game loop.
    In this we will learn together how to make a simple platform game, where player can move left and jump up and down, move from the platform to platform, collect coins and finally complete the game. We make this so it give different end messages depending how you lose game for example it can give a end message if you got hit by the enemy or fell off the platform.

Комментарии • 189

  • @mooict
    @mooict  3 года назад +9

    Download this project here github.com/mooict/Platform-Game-in-Windows-Form

  • @immanuelsuleiman7550
    @immanuelsuleiman7550 3 года назад +19

    this is one of the coolest things i've ever seen
    well done sir

  • @konstantinosbakas6860
    @konstantinosbakas6860 2 месяца назад +1

    Very nice analytical explanation from scratch. Thank you.

    • @mooict
      @mooict  2 месяца назад +1

      Glad you liked it!

  • @doji6651
    @doji6651 4 года назад +16

    Very good beginner tutorial, thx. Simple and short, to the point, and ending up with a game that works.

    • @mooict
      @mooict  4 года назад

      Thank you the kind feedback. I'm glad you found it useful 😊

  • @GordonFreemanC13
    @GordonFreemanC13 4 года назад +8

    I've followed your tutorial out of curiosity as a C# beginner. I made a slightly smaller form. But, the jumping was a bit weird for me, because it's very easy to fly up out of form if I held the space key any longer. Similar to "Bomb Jack" game, back in the days :) Adjusting force a bit, I managed to refine it just enough to be able to jump over enemies. Also, you forgot to limit player to go left and right out of form. Other than that, for a 45 minute, this is a amazing tutorial! I've learned a lot! Thank you so much!

    • @mooict
      @mooict  4 года назад +7

      Thank you Mr Freeman, things in black Mesa all good? Lol I'm glad you found this one useful😊

    • @GordonFreemanC13
      @GordonFreemanC13 Год назад

      @dothebrew2343 Greetings ! None of this is real, is it? :)

  • @robkazer5841
    @robkazer5841 Год назад +4

    Thank you for this! You gave me the confidence to go ahead and try, and I've officially made my first game! I'm excited to check out the rest of your videos!!

    • @robkazer5841
      @robkazer5841 Год назад

      I know replying to your own comment is odd, but I've noticed you actually replying to a few people and figured I'd ask: how would you program it so you can press a button near an enemy to "kill" them? If this is covered in another of your videos I'm sure I'll find out soon enough either way!

    • @mooict
      @mooict  Год назад

      Glad I could help!

  • @mahmoud2644
    @mahmoud2644 3 года назад +6

    OMG thank you so much this helped me sooooo much , i cant thank you enough

  • @AmandaReznor
    @AmandaReznor 4 года назад +7

    I'm loving your tutorials. Thank you very much!!!

    • @mooict
      @mooict  4 года назад +1

      You're welcome glad you found it useful

    • @AmandaReznor
      @AmandaReznor 4 года назад

      @@mooict Very useful, indeed! Nice to see there are still people like you in this world, feel embraced!

  • @jirinahlavkova4115
    @jirinahlavkova4115 3 года назад +2

    Oh my god you're a legend, Thanks so much for this tutorial 🙌

  • @paulo0651
    @paulo0651 3 года назад +4

    Thanks a lot for this tutorial. It totally helped.

  • @JamesAutism90526
    @JamesAutism90526 Год назад +2

    Thank you!

  • @LVTVyt
    @LVTVyt 3 года назад +5

    Great job! I will make something like your game. :)

  • @Xlorate
    @Xlorate 10 месяцев назад

    Great tutorial,
    Once you use "Collect all the coins", then "you fell to your death" no longer works.

  • @dagoose9570
    @dagoose9570 2 года назад +7

    can you please make a tutorial on how to proceed to a next level, i cant figure out how to make another form open automatically when the player reaches the exit

    • @tzooby
      @tzooby 2 года назад +3

      Make a new form (for example form2) and do:
      Form2 level2 = new Form2();
      level2.Show();
      this.Hide();

    • @AgentsoloOG
      @AgentsoloOG Год назад

      @@tzooby ty

  • @razakz2513
    @razakz2513 3 года назад +1

    great job Sir
    best tutorial ever

  • @cherylklimack325
    @cherylklimack325 2 года назад

    A very nice tutorial. Thank you.

  • @ImusingX
    @ImusingX 4 года назад +8

    easy way for the RestartGame() Function:
    Application.Restart()
    edit: Im using visual basic. i dont know if thats something in C#

    • @mooict
      @mooict  4 года назад +7

      Application.Restart(); also works in C#. To use it you might want to add the line Environment.Exit(0); under it so it closes the current version running and then restarts it. Much more memory efficient 😉 thanks for the heads up.

  • @thewanderingidiot2642
    @thewanderingidiot2642 3 года назад +1

    awesome thank for the tutorials

  • @user-lg4bg1gq3q
    @user-lg4bg1gq3q 7 месяцев назад +1

    cool video)

  • @Kobubu
    @Kobubu 4 года назад +2

    Amazing tutorial, thx

    • @mooict
      @mooict  4 года назад

      Glad you liked it!

  • @arvsnacs422
    @arvsnacs422 3 года назад +1

    Done it. Thanks.

  • @Orbitten
    @Orbitten 4 года назад +1

    The dialogue that shows up beneath the score is not showing, even though I wrote it the way you did. Do you know why that might be?

    • @mooict
      @mooict  4 года назад

      Try turning auto size off on the label in the properties window and drag the height of the label and make it bigger to see the text when game ends.

    • @Orbitten
      @Orbitten 4 года назад

      @@mooict Auto size was already on false. When I turned it on, the default sub-message appeared, but now its flickering like crazy.

  • @SanukaSenumitha
    @SanukaSenumitha 3 года назад +1

    super

  • @BrightParts
    @BrightParts 3 года назад +1

    Would there be any way to remove the glitchy-ness from the player?

    • @zombinez1803
      @zombinez1803 3 года назад

      The only way is to write normal code instead of this junk shit

  • @audreyarellano3709
    @audreyarellano3709 4 месяца назад

    Hello when I do the player.Left it says that Left does not contain a definition and no accessible extension method :((

  • @ajalahammedolamilekan5560
    @ajalahammedolamilekan5560 3 года назад +2

    it's a great video but when I restart the game the player keeps falling down. Thanks

  • @sethhinkle4330
    @sethhinkle4330 3 года назад +2

    I love the video my man, but I have having one error. When I compute, my player is not showing up..like at all. What do you think the error could be?

    • @sethhinkle4330
      @sethhinkle4330 3 года назад +1

      my enemies and vertical platform are just spazzing out as well. Horizontal is not moving at all.. i'm stumped to what im doing wrong though, code is mirroring yours

    • @eragonstudios9847
      @eragonstudios9847 3 года назад

      Have you enabled the timer?

  • @gerardokolie1829
    @gerardokolie1829 2 года назад +1

    cool tutorial, but am still having problem understanding the jumping of the player , can you pls explain a bit further

  • @windws7137
    @windws7137 Год назад

    Legend

  • @tomk3682
    @tomk3682 3 года назад +2

    Hi, when I jump under a platform, I will end up on top of the platform, is that how it is suppose to behave with the code ?

    • @mooict
      @mooict  3 года назад

      That's how it's programmed for this game.

    • @turningprophets
      @turningprophets 3 года назад +2

      A messy quick fix for this would be to write out an if statement for each platform such as:
      if (player.Bottom < platform1.Top + 1 && player.Bounds.IntersectsWith(platform1.Bounds) && jumping == false)
      {//*execute stick to platform and force/jumpSpeed reset*//}
      This would replace the foreach loop that is sticking the player to a platform.
      It's less efficient but would only land the player on a platform if they are above it and would stop the player from teleporting from the bottom to the top.

  • @thedrumdude1780
    @thedrumdude1780 3 года назад +1

    how do i get from the welcome page to create new project????? pls help

  • @RushScripts
    @RushScripts 3 года назад +1

    How would I make this for android tho?

  • @paryx_
    @paryx_ 4 года назад +2

    Hey. The vertical and horizontal platforms are moving way too fast for me. Even on value 1 theyre incredibly fast. Why is that so and how can i adjust that? Should i change it to double or something like that?

    • @mooict
      @mooict  4 года назад

      I'm not sure what might cause this, are the player movements and enemy movements on normal speed?

    • @paryx_
      @paryx_ 4 года назад +1

      @@mooict I just followed the instructions in the video. The speed values were the same as in the video. But that was way too fast so i set them on 1. But thats still pretty fast. Nowhere near as slow as shown in the video.

    • @paryx_
      @paryx_ 4 года назад

      @@mooict I just did make the playerspeed higher so it got compensated with that. But another thing is that my player isnt moving with the horizontalPlatform when im standing on it. You can see that the player is slightly moving into the direction the platform is moving but its still falling off pretty quickly. Either way I appreciaty the video it did help me alot :)

    • @mooict
      @mooict  4 года назад

      Check the timer tick option in the properties window. It might be caused because how fast the timer is ticking.

  • @aidenmorris1924
    @aidenmorris1924 2 года назад

    great video

  • @pustai1627
    @pustai1627 4 года назад +3

    Hi, how can i load a next map, for ex if i make 2 separat scene and load one after Another, how could i do that?

    • @mooict
      @mooict  4 года назад +2

      Hi you can do this by adding a new form inside the solutions explorer. By default it will be named Form2 so when you want to go to that form you can do the following
      Form2 levelTwo = new Form2(); // create a new instance of a new Form2 called levelTwo
      levelTwo.Show(); // show the new form on display
      this.Hide(); // hide the current form
      When you reach a part where you want the player to move to a new game level you do run the code above.
      Hope this helps 😊

    • @pustai1627
      @pustai1627 4 года назад

      @@mooict thx dude!

    • @stephaniefriddle6937
      @stephaniefriddle6937 3 года назад

      @@mooict I'm trying to do this, but when the second form loads, the code doesn't work on the form. I can't move the sprite and the platforms and enemies don't move. Is there something on the second form I need to include for it to work?
      Also, your tutorial is great and thanks for making it!

    • @mooict
      @mooict  3 года назад

      @@stephaniefriddle6937 you'll have to do the same thing again like adding the keyboard events, timer events etc to the second form to animate it and move the player etc.

    • @stephaniefriddle6937
      @stephaniefriddle6937 3 года назад

      @@mooict Thanks for the reply! I've done all that for the second form, I've been trying to comb through all the code to try and figure out why it's not working, but haven't been able to figure it out.
      I changed the events on the form to run the MainGameTimerEvent on load, and the KeyDown/Up as well.
      I've tried messing around with isGameOver and gameTimer, but haven't been successful there either.

  • @r0m3r000
    @r0m3r000 3 года назад +3

    You have a great tutorial bud!
    Thanks for sharing your knowledge.
    I am a very beginner c# programmer and I was able to reproduce the game.
    Did a few alterations such as adding images instead of the boxes itself, the question now is:
    How do I update the PictureBox when the player moves to the left or right?
    Thank you!

    • @mooict
      @mooict  3 года назад +3

      Hi, glad you found this helpful. Check out the save the eggs game tutorial where I've shown how to change picture box images when moving the player left or right with key down.

  • @Kobayashii45
    @Kobayashii45 2 года назад

    whenever I hold the jump button it goes up continuously

  • @ilyasbenhamdoune2203
    @ilyasbenhamdoune2203 Год назад

    i tried to import photo to the game and i add them but when i run the game without the photo

  • @weirdthings4211
    @weirdthings4211 3 года назад +1

    Hi!
    Thx for the tutorial but i have one problem.
    When i touch the enemy(One or Two) and it shows me that im dead, i press the restart bottom and all the Platform are glitching and the Player isn't appearing.
    I hopefully you understand what i'm talking about.
    What you recommend to do next?
    Thanks a lot!🤗

    • @mooict
      @mooict  3 года назад +1

      I'm not sure what could be causing this issue. The project is now on GitHub you can download it and see the source code from there github.com/mooict/Platform-Game-in-Windows-Form hope this helps.

  • @stuntfax9004
    @stuntfax9004 2 года назад

    I’m using the 2022 version but i don’t know how to do the windows form thing

  • @abbyloreyn1998
    @abbyloreyn1998 2 года назад

    why is bool not working for me and the int is interface

  • @marialouise7110
    @marialouise7110 4 года назад +2

    Great tutorial! But how would you fix the glitch? It dosen't have to be simple, but i am trying to create this for an assignment in a course at my university :) So i would rather have it not 'glitching' ;)

    • @ImusingX
      @ImusingX 4 года назад +2

      change the borderstyle. Sometimes that helps

    • @marialouise7110
      @marialouise7110 4 года назад

      @@ImusingX What borderstyle would you suggest? :)

    • @ImusingX
      @ImusingX 4 года назад

      i use Fixed3D but i dont know if that works in C# because i use Visual Basic

    • @aprildaniels2710
      @aprildaniels2710 4 года назад

      ​@@PirateFoxBox Try and turn double buffering on - for your pictureboxes

  • @shadowstorm6331
    @shadowstorm6331 3 года назад +1

    why aren't you using player.bottom = x.top?

    • @mooict
      @mooict  3 года назад

      Hi, because we are already using player.top to simulate gravity and jump. It's more efficient to modify one coordinate of the player object than 2.

  • @williamwhitebirch9191
    @williamwhitebirch9191 2 года назад

    My restart function does not work properly

  • @felixleseigneur7424
    @felixleseigneur7424 7 месяцев назад +1

    Hi Logan!

    • @logancarlson2133
      @logancarlson2133 7 месяцев назад

      Hey bbg, this dumbass code doesn't work

  • @Raycast74
    @Raycast74 2 года назад

    I have a little experience with Processing and Java. Would this be easy enough to follow? I've heard that C# and Java are similar.

  • @gersonperez56
    @gersonperez56 3 года назад

    I have a problem and is that when I start the project my player does not move and I don´t know why.

  • @-.stranger.-
    @-.stranger.- 3 года назад

    I am having an error c # system.drawing.size.width is inaccessible due to its protection level please tell me how to fix it

  • @ChickenGt365
    @ChickenGt365 Год назад

    how do you get the toolkit

  • @brennencanfield4856
    @brennencanfield4856 2 года назад

    how can I get the enemies to flip when they change direction?

  • @henriquealves6151
    @henriquealves6151 2 года назад

    I'm using your project to make a game for my School final project, but i have some questions that i need to make first, this because i can go forward with it, and all because i don't know how to make it advance to a new level, you know how can i make levels and connect them ?

  • @combazt8536
    @combazt8536 2 года назад

    Jo i have a problem my Character is falling down when i will test the mini game

    • @mooict
      @mooict  2 года назад

      Check the tags on the platform picture boxes. It should be "platform" on each of them.

  • @lisuniopl4936
    @lisuniopl4936 3 года назад

    hey i have a question what assets to use from visual studio to have this popup

  • @evilgen3301
    @evilgen3301 2 года назад

    green door not working why? i did everything like you did in video

  • @georgedemian3776
    @georgedemian3776 Год назад +2

    Hey! I've found a fix for the glitch: in the "if (player.Bounds.IntersectsWith(x.Bounds))" statement, just add jumpingSpeed = 0; . It works greatly for me!

    • @mooict
      @mooict  Год назад +1

      Awesome. Thank you.

    • @georgedemian3776
      @georgedemian3776 Год назад +1

      @@mooict no bro, thank you for all the awesome C# game tutorials, I'm currently working on my bachelor's and I am making a game using a lot of ideas from yours. Thank you for your great work!!

    • @mooict
      @mooict  Год назад

      @@georgedemian3776 It makes me really happy that you're completing your education. All the best you to my friend.

    • @georgedemian3776
      @georgedemian3776 Год назад

      @@mooict Thank you! All the best to you too!

    • @tevesdionnenerop.845
      @tevesdionnenerop.845 Год назад

      how?

  • @kaptainghost3283
    @kaptainghost3283 Год назад

    Where can i find the step by step written guide

  • @st_0390
    @st_0390 3 года назад +1

    hi! this was an amazing tutorial!
    though i think i did something wrong: whenever i press enter after i had died it doesn't let me respawn and one of the enemies spawns literally near the vertical platform in the middle of the air. how can i fix that?

    • @mooict
      @mooict  3 года назад

      Oh k, I think check the game reset function and make sure it's the same values as this tutorial.

    • @st_0390
      @st_0390 3 года назад

      @@mooict okay, thank you!

  • @dikketenz6251
    @dikketenz6251 2 года назад

    I had almost made it but had to leavz before finishing it, saved everything and now the level is gone, code's still alright but won't run without the squares anymore

  • @r0m3r000
    @r0m3r000 3 года назад +1

    Any idea how to fix the Glitch? I want to share with my son and nephews :D

    • @mooict
      @mooict  3 года назад +1

      Unfortunately the glitch is standard in Windows form.

  • @viperwr5667
    @viperwr5667 3 года назад

    im not sure what i did wrong i just went threw the video again all seems good my player just doesnt fall on the platform it just stays in the air(startpoint)

  • @tmobz3649
    @tmobz3649 3 года назад

    can u remove the glitch from the player?

  • @filipstura3368
    @filipstura3368 2 года назад

    Very very good video! I watched your flappy bird tutorial and this and you're fantastic! I might steal this idea (and tweak it a bit) for my high school programing homework. :)
    P.S. I have a problem and i was wondering if you could help me: my player doesnt move. I'm at the same point as you in the code i did the maingametimer code and the keyup keydown and your player is moving, but my player is not. Do you maybe know why?

    • @mooict
      @mooict  2 года назад +1

      Hi, Thanks for the lovely comment. Check if the timer is enabled in the project. May be that's why the player isn't moving.

    • @filipstura3368
      @filipstura3368 2 года назад

      @@mooict yes it was that thank you very much

  • @user-kr3ev5lr5h
    @user-kr3ev5lr5h Год назад

    I'm at 24:13 in the video and while the character in the video jumps normally, mine is flying straight into the air without stopping or ever coming down. I've checked three or four times now and can't find what I've done differently. Can anybody help?

    • @user-kr3ev5lr5h
      @user-kr3ev5lr5h Год назад

      I just found the error myself. It was because the player character was still tagged as platform. The Game basically thought that the player was always touching a platform, because it counted the player as a platform.

    • @lolaris
      @lolaris Год назад +1

      ​@@user-kr3ev5lr5h THANK YOU SO MUCH!!! 5 HOURS OF MY LIFE 😭

  • @kur0.o
    @kur0.o Год назад

    When you die by falling or running into enemies the death message doesn't show up, how do I fix this?
    By the way nice tutorial, it was very helpful and I learned a lot!!

    • @Mhentoro
      @Mhentoro Год назад

      hey, this seems to be a vs error, i am having the same problem now, but 1 year ago it was working fine

  • @cho4tix884
    @cho4tix884 Год назад

    Hey, i have finished this tutorial and added in another 2 levels, but for my level three, how would i create a projectile based enemies, for example, an enemy that stands still but shoots arrows in one direction periodically ?

    • @mooict
      @mooict  Год назад

      You can use either my jet fighter tutorial or the helicopter shooter tutorial to find the solution you need. In both of them I have objects moving from one side of the screen to the other continuously. Hope that helps

    • @cho4tix884
      @cho4tix884 Год назад

      @@mooict hey thanks man, i'll get straight on that :)

  • @zhelf30
    @zhelf30 3 года назад

    My Create new project thing looks different it just says like "New File." "Open File.." Open Folder" "Run a Command" and idk how to get the Windows Form App (.Net Framework) thing to select and use. PLS HELP

  • @tikkyboy7768
    @tikkyboy7768 3 года назад

    This tutorial is really helpful for me as a beginner but whenever i tag the platform the player takes the same tag
    as the the platform.

    • @mooict
      @mooict  3 года назад

      Make sure that the player picture box is not selected when you are selecting all of the other picture boxes.

  • @Mhentoro
    @Mhentoro 2 года назад

    i have a question, i made my map different, and the text goes behind a platform, how do i make it go infront of the platform?

    • @mooict
      @mooict  2 года назад

      Right click on the text and click bring to front

    • @Mhentoro
      @Mhentoro 2 года назад +1

      @@mooict thank you! My game is almost finished i am at the part where you add the kill text, its very cool and very good for starters

  • @paulo0651
    @paulo0651 3 года назад +1

    15:29

  • @vizeer
    @vizeer 2 года назад

    It's a good tutorial but as complete beginner who barely knows anything only the basics 90% og what you do like the let's say "Control x in this. Controls" I don't know where to learn such commands so I only end up copying you by the letter although I don't understand what am actually copying (I only know the basics such as variables, if statements, I've only ever fiddle with simple console programs so I don't know how to make such transition without just 100% copying that anyone can do) any tips how to get better at this or any useful video or link would be appreciated

    • @mooict
      @mooict  2 года назад

      This should help ruclips.net/video/TZudVQnANpY/видео.html

  • @Wan_Destroyer
    @Wan_Destroyer 2 года назад

    Thank you bro i only go on this Video becuse i wannt to make a tool but i dont now how i add a Code in the Form.cs becuse when i add there a code a full code then is there 99+ Problems can you maby help me ?

  • @Stewie499
    @Stewie499 Год назад

    I'm your new Subscriber☺️

  • @runakoekkoek
    @runakoekkoek 3 года назад

    I've had to fix way too many errors in this tutorial, I gave up when it said the horizontalPlatform and verticalPlatform code didn't work, "name does not exist in the current context". I've had this problem before with the TxtScore and I fixed it by naming it again through the properties window, but this time nothing fixed it (even tried it in the designer code). Also my left and right controls don't even work, tried everything. Guess it's just my fault for trying to make a game in C# instead of python lol.

    • @mooict
      @mooict  3 года назад

      Check the spelling also make sure there is space in the end of it. Or delete the current picturebox, add another and name it on that one. Don't give up on C# just yet.

  • @Ender_Sifter
    @Ender_Sifter 3 года назад

    Great Tutorial
    but at 40:01 you put if goLeft is false or goRight is false so it only deactivates if you move both to the right and left at the same time but then your not moving anyways so kinda pointless
    also you can do enemyOne.right insted of enemyOne.left + enemyOne.width

  • @konstantinkolmogortsev8724
    @konstantinkolmogortsev8724 3 года назад

    start with 2:30

  • @spaceq7332
    @spaceq7332 3 года назад

    Nice tutorial!
    Still I have a problem, the thing is I dont know why that happened but from one moment to the other i couldn't control my player block anymore. The player block is unresponsive after 1 input of right or left. Jumping is working just fine, its just that i cant move the player block anymore after I pressed it one time. As soon as I let go of left or right I cant move the player block anymore besides up (jumping). Any solutions? I also tried to download your file and copy&pasted it into my project but there is also the problem that the player block gets unresponsive after I press left or right one time + for some reason the vertical platform starts to glitch when i paste your code in. And furthermore my restart of the level isnt working even though its the same code as you have.

    • @mooict
      @mooict  3 года назад

      For the movement we have rules for right and left arrow keys in the key down and up event. The actual movement happens in the timer event. In there we check if the goright or goleft Boolean is true then we move the player in that direction. If yours isn't moving after one input check the timer event and see if it's the same as the code in the tutorial. Keep an eye on the brackets from the loops and if statements it can cause issues of it's not closed properly.

    • @spaceq7332
      @spaceq7332 3 года назад

      @@mooict I checked multiple times and i even redid the steps from the video tutorial, but it still didnt work. And like i said your code that i copy and pasted didnt work either. Even if it is possible that my code has flaws, yours surely shouldnt have any. Thats why im so confused because even your code didnt work when i pasted it in and i made sure everything was according to the tutorial.

    • @_Enenra
      @_Enenra 2 года назад

      I think you made the same mistake I did, you used KeyPress instead of KeyUp when making KeyIsUp in Form properties.
      Took me one entire day to figure that out and it's an easy mistake to make since they are one under another so go take a look at it if you still have this game code saved somewhere.

  • @TweetyStickFigure
    @TweetyStickFigure 2 года назад

    Would this code work with unity?

    • @mooict
      @mooict  2 года назад

      No it won’t work for unity as is.

  • @hedyhx1310
    @hedyhx1310 3 года назад

    How do you make it go to a 2nd level? Cause i need it to advance to the next level

    • @mooict
      @mooict  3 года назад

      You can make a new form and make that appear on screen when objectives been met for this one. That one can have its own platform timer, enemies etc same as this one.

  • @theprinterdude9687
    @theprinterdude9687 3 года назад

    I need help
    i kinda removed Form1 [Designer]
    can you please tell me how to get it back
    i just needed to shut down my pc and when i got back i could only see the test/debug window

    • @mooict
      @mooict  3 года назад +1

      In your solutions explorer double click on Form1 it should open the designer

    • @theprinterdude9687
      @theprinterdude9687 3 года назад

      @@mooict
      Thank you so much

  • @marioko5142
    @marioko5142 4 года назад +1

    Nice idea but my player keeps falling through the platforms :/

    • @mooict
      @mooict  4 года назад

      Check collision between the platform and the player section inside the timer event. You may have missed that code in your project.

    • @marioko5142
      @marioko5142 4 года назад +1

      @@mooict Couldn't fix it, but thanks for the support. I will keep programming. This was my first project.

    • @mooict
      @mooict  4 года назад

      @@marioko5142Hi Mario, that's the spirit, keep on programming. For this project see if you have tagged the platform picture boxes to "platform" in the properties windows.

  • @OFFczarek55
    @OFFczarek55 2 года назад

    my player just flew away

  • @techtube1152
    @techtube1152 3 года назад +1

    Hello mr. cow

    • @mooict
      @mooict  3 года назад

      Hello 👋

  • @selrahcph
    @selrahcph 2 года назад

    is it ok when the KeyIsUp is above the KeyIsDown???

    • @mooict
      @mooict  2 года назад

      Yes that's fine

    • @selrahcph
      @selrahcph 2 года назад

      @@mooict ahm sir can i ask you a question why is my player are going through the platform???

    • @mooict
      @mooict  2 года назад

      @@selrahcph check the tag on the platform in the properties window. Make sure it says platform all lower case and no spaces.

  • @win_ini
    @win_ini 3 года назад +1

    im gonna make tetris.

    • @mooict
      @mooict  3 года назад

      That will be awesome.

  • @prajackW
    @prajackW 3 года назад

    Can you plz told me how I can add new stage

    • @mooict
      @mooict  3 года назад +1

      Yes that tutorial is coming soon

  • @olz6928
    @olz6928 3 года назад

    For me gameTimer.Start(); isn't correct syntax.

    • @mooict
      @mooict  3 года назад +1

      Go back to the design view and name the timer to gameTimer it should fix that

    • @olz6928
      @olz6928 3 года назад +1

      @@mooict Or then I could use "Timer.Start();", I think.
      Thank you.

  • @anthonykratos1006
    @anthonykratos1006 7 месяцев назад

    galera de jogos digitais do ifba de lauro aproveitou viu

  • @sidrittoplica5423
    @sidrittoplica5423 2 года назад

    in my vistual studio sayes the txtscore it does not exist in the curent context

    • @mooict
      @mooict  2 года назад

      Change the label name in the properties window to txtscore.

    • @sidrittoplica5423
      @sidrittoplica5423 2 года назад

      @@mooict ok i fixed that but i have a nother problet with and now the text isn’t working after txtscore

    • @mooict
      @mooict  2 года назад

      @@sidrittoplica5423 are you using txtscore.Text = "Score:" + score; make sure the .Text is with a capital T.

    • @sidrittoplica5423
      @sidrittoplica5423 2 года назад

      @@mooict I tried but nothin happens it says error

    • @mooict
      @mooict  2 года назад

      @@sidrittoplica5423 can you tell me what's the error?

  • @manirajpoot8248
    @manirajpoot8248 3 года назад +1

    Sir please provide the code

    • @mooict
      @mooict  3 года назад

      Full project and source code is on the GitHub. Link is pinned as the top comment.

  • @marttheguy1
    @marttheguy1 3 года назад

    all the time my designer resets, back to default form

    • @mooict
      @mooict  3 года назад

      Ah, that happened to me a couple of times too. make sure to save after each change you make also restarting visual studio sometimes fixes this issue.

  • @sanida8069
    @sanida8069 Год назад

    hey thank u for this awesome tutorial! for some reason my player can walk out the frame and cant reappear, is there a solution to this problem? ive compared the code to urs multiple times and still cant figure out whats wrong

  • @deadchannel7267
    @deadchannel7267 3 года назад +1

    I'm using visual studio code

  • @channelofexponentialidle1946
    @channelofexponentialidle1946 Год назад

    gmpx

  • @AltSpecterr
    @AltSpecterr 3 года назад

    he sounds a little like georgenotfound

  • @Rixterko
    @Rixterko 3 года назад

    N n n a j t i b k n n r t s k Elko jedno

  • @celineerni7763
    @celineerni7763 3 года назад +1

    ca pue la merde sah

  • @user-wc5og3mw2q
    @user-wc5og3mw2q 8 месяцев назад

    cool video)