Python Game Coding: Scrolling Background

Поділитися
Вставка
  • Опубліковано 17 січ 2025

КОМЕНТАРІ • 64

  • @bbulliard
    @bbulliard 3 роки тому +1

    You are a gifted teacher. Explained so well and detailed. So well done.. thank you for making this video bob

    • @TokyoEdTech
      @TokyoEdTech  3 роки тому

      You're quite welcome, Bob. Keep on codin'!

  • @jonathanromero6387
    @jonathanromero6387 4 роки тому +2

    No dislikes!!! Good for him I love what ur doin man!!!

  • @RussellRiker
    @RussellRiker 4 роки тому +1

    I love the "The Happy Little Clouds" 😁

  • @victorhe9600
    @victorhe9600 4 роки тому +1

    Thanks for the video I attached it to the "How to Make a character jump tutorial" to make a platformer game

    • @tankytitan1304
      @tankytitan1304 4 роки тому

      I am planning to make a Mario run type of game

  • @kygolex7958
    @kygolex7958 4 роки тому

    wow thats very important for me actually
    Thank you so much

  • @winslowsolomon7882
    @winslowsolomon7882 4 роки тому

    ayyyy first one here thx for the great content

    • @winslowsolomon7882
      @winslowsolomon7882 4 роки тому

      @@TokyoEdTech :) oh and by the way congrats on 25000 subs. If you want to get a bunch more here are a few tips: (1) Show your face. you could have a little box in the corner or just show at the beginning and end. (2) make an exciting intro to your video. maybe some sort of animation with music. You dont have to do these they are just ideas :)

    • @winslowsolomon7882
      @winslowsolomon7882 4 роки тому

      :)) wow your amazing you reply so fast! I see your points for sure and totally understand. Also, I saw a ted talk that was by teachers from tokyo. Im pretty sure u were there with a guitar talking about coding. Was that you? :)

  • @tankytitan1304
    @tankytitan1304 4 роки тому

    I made more than 10 games using turtle module. Thanks to you Mr.Cristian

  • @LEHSE
    @LEHSE 3 роки тому

    Good for you , and thank you for the video

  • @crmz8656
    @crmz8656 2 роки тому +1

    How would you resize the registered image because if I use shapesize method, it won’t change size

    • @TokyoEdTech
      @TokyoEdTech  2 роки тому

      That's a limitation of the turtle module. You can use the Pillow module to resize the image dynamically, or you can just use an image editor such as GIMP to resize it manually.

  • @tankytitan1304
    @tankytitan1304 4 роки тому +1

    how can you set a platform or enemy at a particular position in a scrolling background. When I tried this the platform is fixed at a particular place as expected but the player cant reach that platform. Please help

  • @ethansofiadada
    @ethansofiadada 4 роки тому

    The Modulus. It sounds so ominous.
    I always have to adjust for Windows in terms of speed and updates, but that's part of the fun! I'd be interested to see the scrolling background used in conjunction with the motion tutorial you did. I will play around with it! Thanks!

    • @TokyoEdTech
      @TokyoEdTech  4 роки тому

      Enjoy! The Ultimate Python Turtle Graphics Game uses a similar mechanism.

    • @ethansofiadada
      @ethansofiadada 4 роки тому +1

      @@TokyoEdTech I imagined it did from what you've said about it so far. Looking forward to it, though I'm gonna finish up the rest of your tutorials (I've just a few left!) before the big one!

    • @TokyoEdTech
      @TokyoEdTech  4 роки тому +1

      @@ethansofiadada Keep on keeping on!

    • @ethansofiadada
      @ethansofiadada 4 роки тому

      ​@@TokyoEdTech I may delve into your Live Coding games before doing Space Arena. I figure that will allow for more time for its completion. Plus, there's some cool stuff in there!

  • @tankytitan1304
    @tankytitan1304 4 роки тому +1

    Can you make a platform game

  • @ΝίκοςΘεοδωρίδης-ψ7ι

    Nice Video!! I want to ask you something.. if i want to make visible my character with an image in front of my backround.. how i can do this ?

  • @shreyanshgupta3214
    @shreyanshgupta3214 4 роки тому

    I have a question. Can you make a video of how to blend the next background? By like slowly changing the background into the other? Because it would be weird if a new background just pops up sooooooo.

  • @colwarsstudiobrickfilmandm8580

    Can I use this with the maze tutorial?

    • @TokyoEdTech
      @TokyoEdTech  Рік тому

      The same basic principal will apply. You use an offset to keep the player centered while everything else moves. However, you'll have to redraw the maze each time

  • @7a53vinay4
    @7a53vinay4 4 роки тому +1

    Please make a game containing a shooter and a jungle as a background and with sound and with this scrolling background

    • @TokyoEdTech
      @TokyoEdTech  4 роки тому

      I don't really take requests. There is enough info here to make the scrolling part - check out my other tutorials for more information on how to make shooting entities.

  • @devgupta9469
    @devgupta9469 4 роки тому

    Can you use pygame and create an interactive portfolio website? It would be helpful

    • @devgupta9469
      @devgupta9469 4 роки тому

      @@TokyoEdTech Well I thought the portfolio could be game with the info as background and control the person to move back and forth the portfolio and the game can be upload to online platform and the link can be used

    • @christianthompson3600
      @christianthompson3600 4 роки тому

      @@devgupta9469 The idea is sound, but Pygame doesn't run on web pages. Plus, if you're making a portfolio, YOU should make the portfolio to show YOUR ability.

  • @mrithigashree
    @mrithigashree 4 роки тому

    Could you give a tutorial on the Google t-rex game using Pygame module?

  • @tankytitan1304
    @tankytitan1304 4 роки тому

    Can you make a tutorial about how to make character animation for a platform game example: Mario run

  • @chessforfun5394
    @chessforfun5394 4 роки тому +1

    Can there be a scrolling background without a pattern?
    If yes that would be really helpful?
    It was a great video tho

    • @chessforfun5394
      @chessforfun5394 4 роки тому

      @@TokyoEdTech I mean a moving background which makes new obstacles instead of a specific image

    • @chessforfun5394
      @chessforfun5394 4 роки тому

      @@TokyoEdTech 0:24 you are repeating the same background
      Can you do it like it generates new objects as we scroll through

    • @chessforfun5394
      @chessforfun5394 4 роки тому

      @@TokyoEdTech thanks a lot

  • @iyadmohiuddin1833
    @iyadmohiuddin1833 4 роки тому

    hey why doesnt my background have clouds instead there is only blue color

  • @aliarramadhani2438
    @aliarramadhani2438 4 роки тому

    Can you create some simple Chemistry science sandbox game ? On python? Or its too detailed to ask

    • @aliarramadhani2438
      @aliarramadhani2438 4 роки тому

      @@TokyoEdTech ohh its okay,i will stay tune to your channel

    • @victorhe9600
      @victorhe9600 4 роки тому +1

      @@aliarramadhani2438 Whats a Chemistry science sandbox game?

    • @aliarramadhani2438
      @aliarramadhani2438 4 роки тому

      @@victorhe9600 nevermind its too detailed i guess 😂

    • @tankytitan1304
      @tankytitan1304 4 роки тому

      @@victorhe9600 He means a physics based game

    • @tankytitan1304
      @tankytitan1304 4 роки тому

      @@victorhe9600 like human fall flat, gang beasts but 2D

  • @SkyFly19853
    @SkyFly19853 4 роки тому

    It feels like JavaScript Background...
    Interesting...

    • @SkyFly19853
      @SkyFly19853 4 роки тому

      @@TokyoEdTech
      I think it does!
      Since I am interested in using Python for game development.
      😊💯💯💯

    • @SkyFly19853
      @SkyFly19853 4 роки тому

      @@TokyoEdTech thanks... but... preparation comes first before good luck... 😏😊💯💯💯

    • @SkyFly19853
      @SkyFly19853 4 роки тому

      @@TokyoEdTech
      #YES #INDEED #ChristianThompson

  • @jethrowidjaja2116
    @jethrowidjaja2116 4 роки тому

    hey edtokyotech somehow register_shape doesnt work on my IDE bcos it says its a bad argument

    • @TokyoEdTech
      @TokyoEdTech  4 роки тому

      I need to see the actual code. Please share your code via pastebin.com link so I can download and test it. To learn how, please watch this video and then get back to me: ua-cam.com/video/L6AwVuu6O3Y/v-deo.html Keep on codin’!

    • @jethrowidjaja2116
      @jethrowidjaja2116 4 роки тому

      @@TokyoEdTech Actually never mind i found out my mistake for using a png image, i just realised register_shape only works for gif images

    • @TokyoEdTech
      @TokyoEdTech  4 роки тому

      @@jethrowidjaja2116 Yeah - the turtle module is limited to .gif files.

  • @irshadmohiuddin6523
    @irshadmohiuddin6523 4 роки тому

    We want the google t rex runner

  • @unrealreality.design
    @unrealreality.design 4 роки тому

    google T-rex pwease