Floating Astronaut Using Scratch

by TheGreatGavino in Design > Digital Graphics

96 Views, 2 Favorites, 0 Comments

Floating Astronaut Using Scratch

Screenshot 2025-10-12 9.25.31 AM.png

I really like coding, and I've always been fascinated with space. So one day, I figured why not let the two worlds collide? Thus began my journey to create a realistic(ish) zero-gravity simulator with Scratch. This project is relatively straightforward, but if you need any troubleshooting just drop me a comment, and I will try to help.

Supplies

  1. Computer. That's it! Make sure you have a Scratch account though.

New Design

Screenshot 2025-10-11 7.46.24 AM.png

First you'll need a new design to work on this project with. Once you're logged in to Scratch, you should be on the main home screen. Look to the upper left side, and there will be a button that says create, located right between the Scratch logo and the explore button. Click that, and you will be taken to a new project. Easy!

Making Sprites

Screenshot 2025-10-12 9.02.07 AM.png
Screenshot 2025-10-12 9.01.30 AM.png
Screenshot 2025-10-12 9.01.36 AM.png
Screenshot 2025-10-12 9.01.47 AM.png
Screenshot 2025-10-12 9.01.57 AM.png

No, not the fizzy soda! By sprites, I mean characters that you can code to perform all kinds of actions. For this project, we'll need an astronaut. There's a few astronaut sprites in the Sprite library, but if you don't like those you can always head on over to Google images and search up 'astronaut clipart' to find one you like, and then upload it to Scratch. Personally, I thought the 'Ripley' sprite would do just fine, so that's what I used from the Scratch library.

Add a Backdrop

Screenshot 2025-10-12 9.09.26 AM.png
Screenshot 2025-10-12 9.08.51 AM.png
Screenshot 2025-10-12 9.08.54 AM.png
Screenshot 2025-10-12 9.09.02 AM.png
Screenshot 2025-10-12 9.09.09 AM.png

There are many, many space-themed backdrops in Scratch. However, it's just like the sprites. If you don't like them, you can always download your own space backdrop from Google or another website. I chose the 'Nebula' backdrop, located under the 'Space' category.

The Code

Screenshot 2025-10-12 9.20.16 AM.png
Screenshot 2025-10-12 9.25.31 AM.png

Now it's time for the fun part: the code! You can pretty much code it however you want, or not at all if you don't want to. I used a few simple lines of code to make him constantly rotate and bounce off of the sides of the backdrop. You can check it out in the images above, and feel free to modify it however you please! Also, for this step I made a bunch of slightly rotated costumes for the Ripley sprite in order to make it look like he's spinning, so if you want to do the same or something different feel free.

Customize

Now it's your turn to create! Modify the code, create your own backdrops, design your own sprites. You have free reign over all of Scratch's tools! Again, if you need any help, drop me a comment, and I will try to assist you in any way I can.