Game
ROBBIE'S: Genesis 48
4 months ago

How I made the lever's code for Robbie's


image.png

this is the parallax code and basically

X is how much you want the mouse X to affect the sprite (Same thing with Y)

X slide is how much it divided by (How slippery it feels) (Same thing with Y slide)

Now the extra X and Y makes it so any value I set it as will add it to the overall position

chrome_qsba2n8iyr.png

These are the settings I use but you can change the X and Y values depending on how much you want it to move.

Lever Y will make it so whatever that value is it will add it to the overall position of the sprite

image.png

This is the actual code that makes the lever move.

The wait until and repeat until blocks are self explanatory

so the two if then blocks are how far the lever can go

set lever Y to mouse y * 7 is just setting the lever Y to the mouse's position *7



12 comments

Loading...

Next up

DEMO IS FIXED AND READY TO PLAY

Day 2 of making my Fnaf inspired game

Disgusting.

JOLLY ANNIVERSARY EDITION POSTER:

Demo 4/25/2026 6 PM EST

phantom foxy pixelart

41 minutes

Day 3 of making my fnaf inspired game

Day 1 of making my fnaf inspired game

Last month I showed a small preview of a pre-overhaul post-night section from Evergreen. Here's another one. Some props here are being reused for the new Vault levels. (2022-2023)

Bozo Redesign