ScratchData LogoScratchData
Back to SuperInky's profile

MarioGalaxy-like gravity engine tech demo

SUSuperInky•Created June 9, 2020
MarioGalaxy-like gravity engine tech demo
11
10
140 views
View on Scratch

Instructions

Arrow keys to move (up to jump)

Description

-- CHANGELOG -- v1.2 • Slightly more accurate gravity calculation • Better vertical acceleration (to do: better horizontal acceleration) • Reduced lag a bit when jumping somehow (sulfurous is still the better alt tho) Wanted to do this for a while and I did now so yeah lol It's pretty basic and includes basic jumping from 'planet' to 'planet' but I guess its cool no pen is not used May add a scrolling and rotating camera but don't expect that. (SPOILER: it's hard) -- TECHNIQUE -- To detect which direction should the cat turn to, it first sets itself to a sphere and grows til' it finds ground, then it does some little adjustements for better accuracy. Then, it changes to a line and rotates until it finds land. This line's direction will be the cat's direction. I actually took inspiration for this technique in a Game Maker gravity engine like this, where the video's creator actually explained the technique. I gotta say it's quite effective, and while not extremely accurate, it's still very good. (2022 update. no its not good. but its the only easy way. arghh)

Project Details

Project ID403293687
CreatedJune 9, 2020
Last ModifiedSeptember 25, 2022
SharedJune 9, 2020
Visibilityvisible
CommentsAllowed