ScratchData LogoScratchData
Back to ImpossibleGamer1234's profile

Car player controller

IMImpossibleGamer1234•Created January 9, 2024
Car player controller
4
2
30 views
View on Scratch

Instructions

Car steering is very useful for more games than you might think at first, and @griffpatch has made a great tutorial on how to do that in a simple way. But it had a little problem: it used two sprites for one car, which might not seem like a big deal, but in some cases, having two sprites for the car, can cause both confusion and increases project load time and possibly even lag. This solves all of those problems (at least improves the situation) by calculating the position of the now imaginary sprite 'Front Wheels' using cLevEr MaTHs! To use this, simply backpack the 'Player' sprite and your good to go! You can draw your own cars, just make sure to update the 'body_length' variable.

Description

Credit to @griffpatch for the tutorial (https://youtube.com/watch?v=IxmOs-Mjmy0&), all the improvents were made by myself. If you decide to use this, make sure to give credit!

Project Details

Project ID948484738
CreatedJanuary 9, 2024
Last ModifiedJanuary 13, 2024
SharedJanuary 11, 2024
Visibilityvisible
CommentsAllowed